dbTalk Databases Forums  

Can a table column support multiple charcter sets (e.g. japanese,chinese, etc)

comp.databases.mysql comp.databases.mysql


Discuss Can a table column support multiple charcter sets (e.g. japanese,chinese, etc) in the comp.databases.mysql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
bizt
 
Posts: n/a

Default Can a table column support multiple charcter sets (e.g. japanese,chinese, etc) - 02-25-2011 , 07:28 AM






Hi,

Is it possible for a single text column to support multiple character
sets (i.e. chinese, japanese, greek...). I'm creating a language
flashcard system and want to make it open to any languages. I'm
currently also looking into the possibility of encoding the text into
a single type in the script (php) prior to inserting for the column
but wanted to check if column can support multiple character sets
first?

Thanks
Burnsy

Reply With Quote
  #2  
Old   
Álvaro G. Vicario
 
Posts: n/a

Default Re: Can a table column support multiple charcter sets (e.g. japanese,chinese, etc) - 02-25-2011 , 07:52 AM






El 25/02/2011 14:28, bizt escribió/wrote:
Quote:
Is it possible for a single text column to support multiple character
sets (i.e. chinese, japanese, greek...). I'm creating a language
flashcard system and want to make it open to any languages. I'm
currently also looking into the possibility of encoding the text into
a single type in the script (php) prior to inserting for the column
but wanted to check if column can support multiple character sets
first?
I suppose this is related to your question at "comp.lang.php". As I
answered there, I don't think your system actually needs to support
multiple charsets; it only needs to support multiple collations. To sum up:

- The alphabet is the set of symbols used by a certain language.

- The encoding is the way those symbols are mapped into a computer program.

- The collation is the set of rules that say how language-specific stuff
is handled, including sort order (does "ch" go between "ca" and "cz" or
between "cz" and "da"?), letter comparisons (is "a" the same as "á"), etc.

Said that, I think MySQL has quite a nice collation support. You can set
a different collation in each table and even in each individual column.
But it won't allow to set a different collation for each _row_ (I don't
think any DBMS allows such a thing). If you actually need it use
different collations, you probably need to rethink your DB design.


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--

Reply With Quote
  #3  
Old   
Peter H. Coffin
 
Posts: n/a

Default Re: Can a table column support multiple charcter sets (e.g.japanese, chinese, etc) - 02-25-2011 , 09:11 AM



On Fri, 25 Feb 2011 05:28:45 -0800 (PST), bizt wrote:
Quote:
Hi,

Is it possible for a single text column to support multiple character
sets (i.e. chinese, japanese, greek...). I'm creating a language
flashcard system and want to make it open to any languages. I'm
currently also looking into the possibility of encoding the text into
a single type in the script (php) prior to inserting for the column
but wanted to check if column can support multiple character sets
first?
UTF-8, which MySQL supports, will allow characters in any of those
listed language.

--
Kyle J Cardoza <admin (AT) zetachannel (DOT) com> sigged:
Quote:
Faith does not, in fact, move mountains;
Mainly because they won't let her loose with a drilling crew and enough
dynamite. -- Chris Suslowicz in the Monastery

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.