|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-08-15 07:34 UTC] moriyoshi@php.net
[2003-08-15 07:42 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 05:00:01 2025 UTC |
Description: ------------ See example. Recode returns weird characters behind 2*strlen($string) in CP912..UTF-16 conversion (not only, also in UTF-8..CP912 and probably others). phpinfo() says Recode Revision: 1.29. Reproduce code: --------------- recode("CP912..UTF-16", "Pouzite prohlizece"); Expected result: ---------------- "\0P\0o\0u\0z\0i\0t\0e\0 \0p\0r\0o\0h\0l\0i\0z\0e\0c\0e" Actual result: -------------- "\0P\0o\0u\0z\0i\0t\0e\0 \0p\0r\0o\0h\0l\0i\0z\0e\0c\0e?\1\0\0" or "\0P\0o\0u\0z\0i\0t\0e\0 \0p\0r\0o\0h\0l\0i\0z\0e\0c\0elong" or ...