|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-10-29 00:12 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2014-10-29 00:12 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 06 23:00:02 2026 UTC |
Description: ------------ While using str_replace to replace string (CP936 encoding), the result leading bad encoding text output Test script: --------------- <?php //GBK encoding str_replace test; save this file into GBK encoding and run it $str = "退党保平安,你心里有不舒服的时候就说出来,为什么不舒服,女孩子都有点这样的脾气的"; var_dump(str_replace('退党', '**', $str)); Expected result: ---------------- display: 保平安,你心里有不舒服的时候就说出来,为什么不舒服,女孩子都有点这样的脾气的 Actual result: -------------- the text was broken, and can not readable