![]() |
| MySQL Database Collation Type |
|
jamie
HostMySite Sales Rep
![]()
|
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
![]()
|
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
![]()
|
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
![]()
|
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
![]()
|
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
|
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
|
You may need to run your query results through this handy conversion tool though
Bork! Bork! http://www.cs.utexas.edu/users/jbc/home/chef.html --Bob |
||||||||||||
|
|
|||||||||||||
|
Bérna
|
hi! this comes from mysql reference ( http://dev.mysql.com/doc/mysql/en/charset-server.html):
|
|||||||||||||
|
|
||||||||||||||
| MySQL Database Collation Type |
|
||
|




