If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Problem handling non-ascii characters!!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-27-07, 08:07
rexselin rexselin is offline
Registered User
 
Join Date: Aug 2003
Location: India
Posts: 109
Problem handling non-ascii characters!!

Hi,

I am working on a product that requires internationalisation. I maintain separate language files for each and every language and use UTF-8 encoding.

My HTML meta tags use UTF-8 format. For the database, I use
Code:
SET CHARACTER SET utf8
as my first query after connecting to the database.

While this works great for some characters (german), it doesn't for russian. Russian characters work fine only if I do not execute this query.

Could anyone please let me know the procedure to follow when one works on a project that will have multiple language data?

I have done the below till now.

1) HTML meta tags -> UTF8
2) Incoming and outgoing mails -> utf-8 encoded and decoded.
3) Mysql -> set character set=utf8

What else do I need to do?

Thank you in advance!

Last edited by rexselin; 01-27-07 at 08:32.
Reply With Quote
  #2 (permalink)  
Old 01-29-07, 04:56
rexselin rexselin is offline
Registered User
 
Join Date: Aug 2003
Location: India
Posts: 109
Well, I solved the problem. My database had latin1 character set and hence didn't work well with languages that needed more bytes.

To fix the problem, create database using utf8 encoding.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On