Current time: 11-23-2024, 11:28 AM Hello There, Guest! (LoginRegister)


Post Reply 
latin1_swedish_ci collation ?
Author Message
Eminos Offline
Junior Member
*

Posts: 159
Joined: Jan 2007
Reputation: 0
Post: #1
latin1_swedish_ci collation ?
Hello,

I noticed in PMA that "latin1_swedish_ci" collation is set for all new databases as default (including the ispCP database). Why is that? And what is collation anyway? Should I change this default to something more convenient and neutral like UTF-8, and how do I do that?

/E
02-11-2008 09:03 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: latin1_swedish_ci collation ?
latin1_swedish_ci is the default from MySQL - they are from sweden :-)

Most important is the first part latin1 - it's the charset. the second is the sort order, which is in case of swedish not really great (ü is sorted near y which is not the case in the german language...).
utf-8 would be better. We already did a step in this direction with Changeset r993 but there are some more steps todo...

/J
02-11-2008 09:17 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Eminos Offline
Junior Member
*

Posts: 159
Joined: Jan 2007
Reputation: 0
Post: #3
RE: latin1_swedish_ci collation ?
Alright ! Fucken swedes, I know they had something to do with this Wink (I'm a swede, hehe)

So this is default, and not that importent then? Or is it good and easy to change this defult to UTF-8 for at least all new databases?

/E
02-11-2008 09:22 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: latin1_swedish_ci collation ?
If you use characters which are not in ascii127 then you may better convert all to utf8... not needed for the lazy english speaking admins...

/J
02-11-2008 09:29 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Eminos Offline
Junior Member
*

Posts: 159
Joined: Jan 2007
Reputation: 0
Post: #5
RE: latin1_swedish_ci collation ?
Alright, but my question about how I make the change so that all new databases are UTF-8 per default is unanswered.
Do I have to edit some config file for mysql, or does the Changeset r993 make this change?

/E
02-11-2008 09:34 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #6
RE: latin1_swedish_ci collation ?
Changeset r993 does it.
at least php uses utf8 then - the engine part (perl) maybe doesn't...
02-11-2008 09:56 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Eminos Offline
Junior Member
*

Posts: 159
Joined: Jan 2007
Reputation: 0
Post: #7
RE: latin1_swedish_ci collation ?
Alright, I changed the stuff manually for changeset r993, but all new databases are still "latin1_swedish_ci". Maybe I shouldn't care so much becouse this is default.

/E
02-11-2008 11:44 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #8
RE: latin1_swedish_ci collation ?
Seems so - we're still working on a full UTF8 adaption...
02-11-2008 11:48 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)