|
Subject:
|
utf8 support in PHP 4.3.11
|
|
Posted By:
|
jaya_76
|
Post Date:
|
10/3/2005 6:04:23 AM
|
Subject: We are some problem with utf-8 encoded characters in PHP.
Using MySQL 4.1.7 collation utf8 and char set utf8-general_ci, we are storing German, French, Spanish and turkey, Nederland’s etc.. Characters, those special characters are storing properly in MySQL.
But when extracting those characters using PHP into variable and want to replace special characters with relevant Umlaut’s, PHP unable to recognize the Special characters.
Please let me know reason, why PHP 4.3.11 does not support utf8 8-bit characters??
How do I achieve the replace functionality with utf8 characters in PHP..
Please respond as early as possible.
Regards Jay
|
|
Reply By:
|
richard.york
|
Reply Date:
|
10/3/2005 7:18:31 PM
|
Might try the utf8_decode() function. http://www.php.net/utf8_decode
I've had some problems with this in the past, and IIRC that was what made it work, in addition to setting the proper character set client-side.
HTH!
Regards, Rich
-- [http://www.smilingsouls.net] Mail_IMAP: A PHP/C-Client/PEAR solution for webmail Author: Beginning CSS: Cascading Style Sheets For Web Design
|
|
Reply By:
|
jaya_76
|
Reply Date:
|
10/4/2005 2:39:09 AM
|
Thanks for your response. but after decode using utf8_decode returning as '?', but not actuall special characters. For Eg: utf8_decode('Ýzmir') returning as '?zmir'
any other ideas please..
|
|
Reply By:
|
jaya_76
|
Reply Date:
|
10/4/2005 6:00:51 AM
|
using phpMyAdmin, select * from table where fieldname like 'Kütahya' has been converting into 'K%C3%BCtahya', what is this encoding model.
How can i achive this Any idea ...
|