Reply to topic
MySQL Database Collation Type
jamie
HostMySite Sales Rep
HostMySite Sales Rep

Joined: 19 Mar 2004
Posts: 766
Location: Newark, De
Reply with quote
I was adding a new table to a MySQL database I run tonight and accidentally set the collation to

latin1_swedish_ci

Is this good/bad? What should I be running it on?
bobum
Elvis Fanatic
Elvis Fanatic

Joined: 16 Nov 2004
Posts: 746
Location: Montgomery, AL
Reply with quote
Most likely you will be ok. The swedish language is based on latin (as is evidenced by the name latin_swedish) and uses all of our standard characters as well as a few extras. Thing is, you might get some unexpected results in searches that you do because the swedish language includes extra characters or does not include some characters that you think should or should not be there. Things like alter table commands could behave in unexpected ways...even though it would be doing it correctly by the Swedish language, it may not be correct for English. Make sense?

It would if you were Swedish...
jamie
HostMySite Sales Rep
HostMySite Sales Rep

Joined: 19 Mar 2004
Posts: 766
Location: Newark, De
Reply with quote
Ok, what *SHOULD* I be using then? Cuz I'm not Swedish I'm Southern. I checked and they don't have a setting for "Southerner".
bobum
Elvis Fanatic
Elvis Fanatic

Joined: 16 Nov 2004
Posts: 746
Location: Montgomery, AL
Reply with quote
I am using utf8_general_ci

don't ask me what that is cuz I dunno - but that's the deafault here.

If they ever come up with utf8_johnnyreb_ci you lemme know - I want it.
bobum
Elvis Fanatic
Elvis Fanatic

Joined: 16 Nov 2004
Posts: 746
Location: Montgomery, AL
Reply with quote
ha! I just noticed that some of MY database fields are using swedish collation - not the database itself but some of the fields inside have swedish collation. Wierd...maybe MySQL is swedish natively...seems to work ok for me so far...never ever looked at this stuff before today really...
plu


Joined: 03 May 2005
Posts: 27
Location: Philadelphia
Reply with quote
Same thing applied here, all fields are in latin1_swedish_ci. However, I'm still not sure what impact this can cause since my websites are running great. My best guess is that these will get overwritten by the internal encoding system of web browsers.
bobclingan
Forum Regular

Joined: 16 Sep 2004
Posts: 271
Location: Abingdon, MD
Reply with quote
You may need to run your query results through this handy conversion tool though

Bork! Bork! Smile

http://www.cs.utexas.edu/users/jbc/home/chef.html

--Bob
Bérna


Joined: 18 Jul 2005
Posts: 1
Location: Zürich
Reply with quote
hi! this comes from mysql reference ( http://dev.mysql.com/doc/mysql/en/charset-server.html):

At the server level, the decision is simple. The server character set and collation depend initially on the options that you use when you start mysqld. You can use --default-character-set for the character set, and along with it you can add --default-collation for the collation. If you don't specify a character set, that is the same as saying --default-character-set=latin1. If you specify only a character set (for example, latin1) but not a collation, that is the same as saying --default-charset=latin1 --default-collation=latin1_swedish_ci because latin1_swedish_ci is the default collation for latin1.
MySQL Database Collation Type
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic