Unicode conversion

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ratan
Forum Commoner
Posts: 28
Joined: Thu Jul 13, 2006 4:22 pm

Unicode conversion

Post by ratan »

I have a data file created from a sql server db, I have to load that in php, identify certain kind of data, massage it and insert the massaged data onto another table in sql server. The data has unicode characters and I am unable to identify it. I have uncommented extension=php_mbstring.dll in php.ini. What else should I be doing. Pls. help. Thanks.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

Have you read the documentation on mbstring (http://www.php.net/manual/en/ref.mbstring.php), plus the specific functions that would be of interest to you? There is a lot of information and you will need to decide what configuration is best for you.
(#10850)
ratan
Forum Commoner
Posts: 28
Joined: Thu Jul 13, 2006 4:22 pm

Post by ratan »

I have gone throught it, but I find it highly confusing.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Unicode conversion

Post by Christopher »

You say:
ratan wrote: I have to load that in php, identify certain kind of data, massage it and insert the massaged data onto another table in sql server.
I guess my first question is -- Have you tried it and does are there problems?

As long as you have your HTML document character set set correctly, use binary safe PHP functions, and have the database set to handle the character sets you are using, you should not be changing your data.
(#10850)
Post Reply