|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-06-24 17:11 UTC] felipe@php.net
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: moriyoshi
[2017-07-28 19:56 UTC] nikic@php.net
-Status: Assigned
+Status: Open
-Type: Bug
+Type: Documentation Problem
-Assigned To: moriyoshi
+Assigned To:
[2017-07-28 19:56 UTC] nikic@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 17:00:02 2025 UTC |
Description: ------------ 1. The version number of the PHP package or files you are using. Latest PHP 5.4 for Windows 2. A short script that reproduces the problem <test script> Sometimes, it produce this error on log file: Warning: mb_convert_encoding(): Unable to detect character encoding in XXX.php on line XXX It seems that 'auto' is not expanding to "ASCII,JIS,UTF-8,EUC-JP,SJIS". This is a temporary fix for me: [TYPE A] $out_strs = mb_convert_encoding($out_strs, "UTF-8", "ASCII,JIS,UTF-8,EUC- JP,SJIS"); or, [TYPE B] mb_language("Japanese"); $out_strs = mb_convert_encoding($out_strs, "UTF-8", "auto"); Test script: --------------- I'm Englishman, so I'm added this in php.ini; mbstring.language = English mbstring.internal_encoding = UTF-8 And the source code is; $out_strs = mb_convert_encoding($out_strs, "UTF-8", "auto"); Expected result: ---------------- auto SHOULD expand to ASCII,JIS,UTF-8,EUC-JP,SJIS. Why should I change mbstring.language = English to Japs?