unicode problem

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
devendra-m
Forum Contributor
Posts: 111
Joined: Wed Sep 12, 2007 3:16 am

unicode problem

Post by devendra-m »

We have two php servsers one in windows and another in linux. both servers are using same database server.

problem: when we insert unicode value in database from php server it is only understable by php server in windows,and it shows garbage value in php server in linux.

character set database : AL32UTF8
apache nls_lang:AMERICAN_AMERICA.UTF8

we have used ini_set('default_charset','utf-8') in every page.

we have used mb_string functions for every string function.
Rovas
Forum Contributor
Posts: 272
Joined: Mon Aug 21, 2006 7:09 am
Location: Romania

Post by Rovas »

Windows and Linux have different implementations of charsets, including utf-8.
You got to find an editor, program, make a script that translates into the correct form of utf- 8.
Verify that Windows adds BOM to the file you put in the database.
Post Reply