|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-08-24 22:56 UTC] sniper@php.net
[2005-08-25 05:22 UTC] mmingxx at yahoo dot com
[2005-08-25 09:43 UTC] sniper@php.net
[2005-08-25 10:29 UTC] mmingxx at yahoo dot com
[2005-08-25 10:39 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 23:00:01 2025 UTC |
Description: ------------ Reference: string iconv ( string in_charset, string out_charset, string str ) Description: Iconv converts fine from GB2312 to Big5 if str contains only keyboard characters (e.g. 123abc@#) and GB2312 encoded characters. However, if str contains Big5 encoded characters, unexpected result would return. I tried to use append //IGNORE to the end of the out_charset but it didn't work either. Same problem exists for converting from Big5 to GB2312. Reproduce code: --------------- <? echo iconv("GB2312", "Big5//IGNORE", "Big5: ?????r??; "); echo iconv("Big5", "GB2312//IGNORE", "GB2312: ????????"); ?> Expected result: ---------------- Big5: ?????r??; GB2312: ???????? Actual result: -------------- Big5: ????r?y; GB2312: ????????