ID:               25096
 Updated by:       [EMAIL PROTECTED]
 Reported By:      spam at vrana dot cz
-Status:           Feedback
+Status:           Bogus
 Bug Type:         Recode related
 Operating System: Linux
 PHP Version:      4.3.1
 New Comment:

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.

Thank you for your interest in PHP.

I once checked another related bugreport too, it was a bug in librecode
then too, and I remember upgrading it to the latest version which did
not resolve the problem. I'm bogussing this, please add further
comments to #17154.


Previous Comments:
------------------------------------------------------------------------

[2003-08-15 07:34:41] [EMAIL PROTECTED]

What is the actual version number of recode you are using?
(That's not displayed on phpinfo) If you aren't using the latest
version, upgrade it first and see what'll happen.





------------------------------------------------------------------------

[2003-08-15 07:24:40] spam at vrana dot cz

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 ...


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=25096&edit=1

Reply via email to