[Tfug] Decoding Multibyte Characters
keith smith
klsmith2020 at yahoo.com
Mon Aug 25 15:48:15 MST 2008
I have a perplexing problem.
When I cut and paste from OpenOffice Writer and the text contains a left quote, right quote, or a long dash, PHP converts it to 3 characters with in IE looks like a box and in FireFox looks like a diamond with a question mark. It is also returned as 3 characters.
I've experimented with the Multibyte functions and can convert the offending character to a single question mark by doing :
$str = mb_convert_encoding($str, "ASCII","UTF-8");
mb_internal_encoding() returns UTF-8
I'm at a loss for isolating these characters and converting them to the proper character.
Any help is much appreciated.
Keith
------------------------
Keith Smith
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tfug.org/pipermail/tfug_tfug.org/attachments/20080825/e7b8fccd/attachment-0002.html>
More information about the tfug
mailing list