I find what language the client is using by a link and the link
will send a parameter "locale" to the, this parameter have three
values: "en_US"(American english,the charset is "iso-8859-
1"),"zh_CN"(simple chinese,the charset
is "gb2312" ),"zh_TW"(tradition chinese, the charset
is "Big5"),the link is like this "<a href="list.php?
locale="zh_CN">,if client click the linke like "<a
href="list.php?locale="zh_CN">",all of the follow pages will
send the html head with "charset=gb2312" to the client browser.
All the characters display on the php pages get from the
database, each piece of data that will be dispay on the page has
three languane records: english ,Chinese traditional ,and
Simplified Chinese. if the parameter "locale" from client
is "en_US" ,so I must get the english characters from the
database. if the parameters locale is "zh_CN" ,the php pages will
get the simplified chinese characters from the database, and if
the parameter "locale" is get from client is "zh_TW" ,so the php
page page will get the chinese traditional characters from the
database. The collation of the database is "Chinese_PRC_BIN" .
but when the server is simplified chinese computer, I browse the
php pages, only can display simplified chinese characters and
english characters correctly on the page. if I change the server
to chinese traditional computer, when I browse the php page,
only can display chinese traditional characters and english
correctly.
so I want some solutions to solve this problem.