Jump to content

Is there an ultimate chracter set?


gordon.c

Recommended Posts

Hello,

 

I am building a multi language application which I would like to count with any possible kinds of characters.

 

How do I set my mysql database and php document to be able to read all (or majority) of characters properly.

 

Characters I have in mind are Russian Cyrillic, Chinese, Japanese, Corean, Czech, Slovak, etc.

Link to comment
Share on other sites

As far as I know UTF-8, supports... well... a lot, of different characters :P - it should support the language packs you listed :)

 

Look here for further information: http://www.unicode.org/

 

Well I believe now I know everything there is to know about Unicode however I still dont know how to apply it to my PHP documents and mysql database... Tried a lot of combinations never being able to display all kinds of characters at once.

Link to comment
Share on other sites

Thx for help I found the source of my problem... I will post it for future refence.

 

So I had my html/php document set to UTF-8 coding however I had my database reguest mysql_query("SET NAMES 'utf8'"); which apparently did not work that well so I had to use mysql_query("SET CHARACTER SET utf8");

 

Now it seems to work fine

Link to comment
Share on other sites

after some testing there is one new issue, when I insert directly into mysql any characters from any char-set it renders fine on my php file however if I use my own forms to submit those characters it buggs again.

 

How do I go about forms in terms of char coding?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.