|
|
发表于 2010/6/29 01:07:53
|
显示全部楼层
以下说明太含糊:
>二、解决数据库返回数据显示中文乱码问题
>
>1. 用批查找替换工具,查找所有文件(不包括doc目录下)iso-8859-15 替换为gb2312,再查找所有文件(不包括doc目录下) iso-8859-1 并替换为gb2312
grep -R -n -i ISO-8859-1 * 得到:
www-data@nas:~/we3113$ grep -R -n -i ISO-8859-1 *
doc/Manual/ManualAPIFunctions.php:15:echo '<meta http-equiv="Content-Type" content="text/html; charset=' . _('iso-8859-1') . '">';
doc/Manual/ManualMultilanguage.html:16:<br>It is especially important to ensure that the string "ISO-8859-1" (at the time of writing around line 19400 in the messages.po file) is translated to be the character set that you wish your translation to use. webERP uses the translated string here to send appropriate html headers so your browser knows how to interpret the characters sent.
doc/Manual/ManualMultilanguage.html:78: * ISO-8859-1 for Afrikaans, Albanian, Basque, Catalan, Dutch, English, Estonian, Faroese, Finnish, French, Galician, German, Greenlandic, Icelandic, Indonesian, Irish, Italian, Malay, Norwegian, Portuguese, Spanish, Swedish,
doc/Manual/ManualMultilanguage.html:86: <BR>* ISO-8859-13 for Latvian, Lithuanian,
doc/Manual/ManualMultilanguage.html:87: <BR>* ISO-8859-15 for Basque, Catalan, Dutch, English, Finnish, French, Galician, German, Irish, Italian, Portuguese, Spanish, Swedish,
locale/en_GB/LC_MESSAGES/messages.po:1019:msgid "ISO-8859-1"
locale/en_GB/LC_MESSAGES/messages.po:25287:msgid "iso-8859-1"
locale/zh_CN/messages.po:1761:msgid "ISO-8859-1"
locale/zh_CN/messages.po:30399:msgid "iso-8859-1"
Binary file locale/zh_CN/messages.mo matches
locale/en_US/LC_MESSAGES/messages.po:17:"Content-Type: text/plain; charset=ISO-8859-1\n"
locale/en_US/LC_MESSAGES/messages.po:779:msgid "iso-8859-1"
Binary file locale/en_US/LC_MESSAGES/messages.mo matches
xmlrpc/Changelog:304: fix serialization of messages to ISO-8859-1 charset with php 5 (by adding
xmlrpc/Changelog:309: fix serialization of responses to ISO-8859-1 charset with php 5 (by adding
xmlrpc/Changelog:1103: $xmlrpc_internalencoding, (defaulting to ISO-8859-1) defines what charset the
xmlrpc/Changelog:1107: server and client and ISO-8859-1 for internal string handling.
xmlrpc/Changelog:1108: ISO-8859-1 is, AFAIK, PHP internal encoding for all installs except
xmlrpc/Changelog:1173: non-USASCII codesets like UTF-8, ISO-8859-1, etc) that caused
xmlrpc/NEWS:125:* fixed bug: serializing to ISO-8859-1 with php 5 would raise an error if non-ascii
xmlrpc/NEWS:152: Values allowed: ISO-8859-1 and UTF-8
xmlrpc/lib/xmlrpcs.inc:462: * can be: a supported xml encoding (only UTF-8 and ISO-8859-1 at present, unless mbstring is enabled),
xmlrpc/lib/xmlrpcs.inc:489: $this->accepted_charset_encodings = array('UTF-8', 'ISO-8859-1', 'US-ASCII');
xmlrpc/lib/xmlrpcs.inc:842: $known_charsets = array($GLOBALS['xmlrpc_internalencoding'], 'UTF-8', 'ISO-8859-1', 'US-ASCII');
xmlrpc/lib/xmlrpcs.inc:912: if (!in_array($req_encoding, array('UTF-8', 'ISO-8859-1', 'US-ASCII')))
xmlrpc/lib/xmlrpcs.inc:915: //if (!is_valid_charset($req_encoding, array('UTF-8', 'ISO-8859-1', 'US-ASCII')))
xmlrpc/lib/xmlrpcs.inc:931: // G. Giunta 2005/02/13: PHP internally uses ISO-8859-1, so we have to tell
xmlrpc/lib/xmlrpcs.inc:937: if (!in_array($GLOBALS['xmlrpc_internalencoding'], array('UTF-8', 'ISO-8859-1', 'US-ASCII')))
xmlrpc/lib/xmlrpc.inc:149: /// These will NOT be present in true ISO-8859-1, but will save the unwary
xmlrpc/lib/xmlrpc.inc:231: $GLOBALS['xmlrpc_internalencoding']='ISO-8859-1';
xmlrpc/lib/xmlrpc.inc:286: case 'ISO-8859-1_':
xmlrpc/lib/xmlrpc.inc:287: case 'ISO-8859-1_US-ASCII':
xmlrpc/lib/xmlrpc.inc:291: case 'ISO-8859-1_UTF-8':
xmlrpc/lib/xmlrpc.inc:295: case 'ISO-8859-1_ISO-8859-1':
xmlrpc/lib/xmlrpc.inc:299: case 'US-ASCII_ISO-8859-1':
xmlrpc/lib/xmlrpc.inc:306: case 'UTF-8_ISO-8859-1':
xmlrpc/lib/xmlrpc.inc:394: case 'CP1252_ISO-8859-1':
xmlrpc/lib/xmlrpc.inc:953: $this->accepted_charset_encodings = array('UTF-8', 'ISO-8859-1', 'US-ASCII');
xmlrpc/lib/xmlrpc.inc:2558: if (!in_array($resp_encoding, array('UTF-8', 'ISO-8859-1', 'US-ASCII')))
xmlrpc/lib/xmlrpc.inc:2561: //if (!is_valid_charset($resp_encoding, array('UTF-8', 'ISO-8859-1', 'US-ASCII')))
xmlrpc/lib/xmlrpc.inc:2568: // G. Giunta 2005/02/13: PHP internally uses ISO-8859-1, so we have to tell
xmlrpc/lib/xmlrpc.inc:2574: if (!in_array($GLOBALS['xmlrpc_internalencoding'], array('UTF-8', 'ISO-8859-1', 'US-ASCII')))
xmlrpc/lib/xmlrpc.inc:3471: if (!in_array($GLOBALS['xmlrpc_internalencoding'], array('UTF-8', 'ISO-8859-1', 'US-ASCII')))
xmlrpc/lib/xmlrpc.inc:3668: // no encoding specified: as per HTTP1.1 assume it is iso-8859-1?
xmlrpc/lib/xmlrpc.inc:3685: 'US-ASCII' => array ('ISO-8859-1', 'ISO-8859-2', 'ISO-8859-3', 'ISO-8859-4',
xmlrpc/lib/xmlrpc.inc:3687: 'ISO-8859-9', 'ISO-8859-10', 'ISO-8859-11', 'ISO-8859-12',
xmlrpc/lib/xmlrpc.inc:3688: 'ISO-8859-13', 'ISO-8859-14', 'ISO-8859-15', 'UTF-8',
www-data@nas:~/we3113$ |
|