Changeset b1fb698 in github
- Timestamp:
- Jun 3, 2009 2:45:39 PM (4 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 42b25af
- Parents:
- 024130b
- File:
-
- 1 edited
-
program/include/main.inc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/include/main.inc
rca85b1c rb1fb698 244 244 } 245 245 else if ($from != 'UTF-8' && $conv) { 246 $from = preg_replace(array('/^WINDOWS-* /', '/^CP-/'), array('CP', 'CP'), $from);246 $from = preg_replace(array('/^WINDOWS-*125([0-8])$/', '/^CP-/'), array('CP125\\1', 'CP'), $from); 247 247 $conv->loadCharset($from); 248 248 $str = $conv->strToUtf8($str); … … 265 265 } 266 266 else if ($to != 'UTF-8' && $conv) { 267 $to = preg_replace(array('/^WINDOWS-* /', '/^CP-/'), array('CP', 'CP'), $to);267 $to = preg_replace(array('/^WINDOWS-*125([0-8])$/', '/^CP-/'), array('CP125\\1', 'CP'), $to); 268 268 $conv->loadCharset($to); 269 269 return $conv->utf8ToStr($str); … … 306 306 $charset = str_replace('UNICODE-1-1-', '', $charset); 307 307 308 # Aliases: some of them from HTML5 spec. 308 309 $aliases = array( 309 310 'USASCII' => 'WINDOWS-1252', … … 314 315 'XUSERDEFINED' => 'ISO-8859-15', 315 316 'KSC56011987' => 'EUC-KR', 316 'GB2312' => 'GB18030', 317 'GB2312' => 'GBK', 318 'GB231280' => 'GBK', 317 319 'UNICODE' => 'UTF-8', 318 'UTF7IMAP' => 'UTF7-IMAP' 320 'UTF7IMAP' => 'UTF7-IMAP', 321 'XXBIG5' => 'BIG5', 322 'TIS620' => 'WINDOWS-874', 323 'ISO88599' => 'WINDOWS-1254', 324 'ISO885911' => 'WINDOWS-874', 319 325 ); 320 326
Note: See TracChangeset
for help on using the changeset viewer.
