|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28640 problem with umlaut in wddx_deserialize
Submitted: 2004-06-05 10:50 UTC Modified: 2004-12-07 08:35 UTC
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: clemens at gutweiler dot net Assigned:
Status: Not a bug Package: WDDX related
PHP Version: 5.0.0RC2 OS: Linux 2.6.3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
36 - 31 = ?
Subscribe to this entry?

 [2004-06-05 10:50 UTC] clemens at gutweiler dot net
wddx_deserialize stops deserializing at german umlaut character.

PHP Version: 5.0.0RC3RC2
This code works properly on PHP 4

Reproduce code:
	$wddx_data = 'test';
	var_dump( wddx_deserialize( wddx_serialize_value( $wddx_data ) ) );
	$wddx_data = 'te?st';
	var_dump( wddx_serialize_value( $wddx_data ) );
	var_dump( wddx_deserialize( wddx_serialize_value( $wddx_data ) ) );
	$wddx_data = array( 'string' => 'te?st' );
	var_dump( wddx_deserialize( wddx_serialize_value( $wddx_data ) ) );

Expected result:
string(4) "test"
string(83) "<wddxPacket version='1.0'><header/><data><string>te?st</string></data></wddxPacket>"
string(5) "te?st"
array(1) {
  string(5) "te?st"

Actual result:
string(4) "test"
string(83) "<wddxPacket version='1.0'><header/><data><string>te?st</string></data></wddxPacket>"
string(2) "te"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-18 14:36 UTC] clemens at gutweiler dot net
	var_dump( wddx_deserialize( '<?xml version="1.0" encoding="ISO-8859-1" ?>'."\n".wddx_serialize_value( 'te?st' ) ) );

this works.
it works also if the data are encoded with utf-8.

but is a bc break!
 [2004-12-07 08:35 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

You have to convert your data to UTF8 if it contains non-ASCII characters. The documentation was wrong about setlocale() and this is alrady fixed.  
 [2021-01-09 10:32 UTC] lulacox1973 at gmail dot com
We have been using this for several weeks now and it seems to be going nicely.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 13 19:01:29 2024 UTC