Page 1 of 1

Unicode conversion

Posted: Thu Aug 10, 2006 1:15 pm
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.

Posted: Thu Aug 10, 2006 2:32 pm
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.

Posted: Thu Aug 10, 2006 3:24 pm
by ratan
I have gone throught it, but I find it highly confusing.

Re: Unicode conversion

Posted: Thu Aug 10, 2006 3:45 pm
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.