|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-07-19 09:50 UTC] tony2001@php.net
[2006-07-19 17:34 UTC] techtonik@php.net
[2006-07-20 06:27 UTC] tony2001@php.net
[2006-07-20 07:04 UTC] techtonik@php.net
[2009-01-21 08:46 UTC] Roman dot Kyrylych at gmail dot com
[2009-03-20 11:14 UTC] wips at mail dot ru
[2010-12-31 12:43 UTC] rustamabd at gmail dot com
[2011-04-08 18:08 UTC] jani@php.net
-Package: Feature/Change Request
+Package: *General Issues
[2011-04-08 18:09 UTC] jani@php.net
-Package: *General Issues
+Package: mbstring related
-Operating System:
+Operating System: *
-PHP Version: 4.4.2
+PHP Version: 5.*
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 12:00:02 2025 UTC |
Description: ------------ Detection of russian encoding in mb_detect_encoding is disabled although it present among the list of supported encodings. It just three rather simple encodings - windows-1251, cp866 and koi8-r that spoil everyday life routines of russian programmer and make PHP less attractive for millions of potential PHP developers. I'll be grateful if somebody will care about them by providing default option for hosting providers, who are not too enthusiastic to experiment with server-wide configuration. Reproduce code: --------------- <?php $str = "?????? ?????? ??? ??????????? ????????? ???????. ??? ????? ?????????? ? ?????? farplugins ?? CVS. ???????? ?? ??????? ? ??????????? ????? ????????? ? ???????? ? ????????? project website ??? ? ?????? ???????? farplugins-devel."; // $encoding = mb_detect_encoding($str, "UTF-8, Windows-1251, CP866, KOI8-R"); $encoding = mb_detect_encoding($str, array("UTF-8", "Windows-1251", "CP866", "KOI8-R")); var_dump($encoding); Expected result: ---------------- string(12) "Windows-1251" Actual result: -------------- bool(false)