Re: [PHP] Re: htmlentities and foreign characters from MS Word

2004-09-06 Thread Octavian Rasnita
You could store those texts as binary in MySQL... - Original Message - From: "Monty" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 06, 2004 11:07 AM Subject: [PHP] Re: htmlentities and foreign characters from MS Word > That did it! It

[PHP] Re: htmlentities and foreign characters from MS Word

2004-09-06 Thread Monty
That did it! It seems that my version of MySQL doesn't support Unicode encoding, only the various ISO encodings. So, I guess this translation is necessary before storing all text in the DB so foreign characters aren't broken when I retrieve them from the DB. Thanks! I2eptilex wrote: > > Well i

[PHP] Re: htmlentities and foreign characters from MS Word

2004-09-05 Thread I2eptileX
Well it seems you have a UTF-8 encoded text after your function. Use iconv to change it. See http://de3.php.net/manual/en/ref.iconv.php . try doing this with your array before inserting it into the DB foreach($insert_array as $key => $var){ $new_arr[$key] = iconv("UTF-8", "ISO-8859-1", $v