-
Notifications
You must be signed in to change notification settings - Fork 67
the chinese string length incorrect #14
Comments
Yeah, any string above ASCII range is wrong. Unserialization also have the same problems, they get characters beyond the string. It should be read by bytes instead of characters. Serialization is easy to solve, just do a EDIT: I think for unserialization the best bet is
|
I rewrite the unserializeString function and it works now on my side private Mixed unserializeString()
|
Chinese serialization and anti - serialization is not resolved? Pherialize.serialize () method serialization, PHP unserialize parsing does not come out. |
It looks like this repository is abandoned. I came with the same issues, so I wrote this library: |
@marcospassos your library does not support deserialization from what I can read. This issue is not about serialization |
here is my code:
String result = Pherialize.serialize("中文字长度");
here is the execute result:
"s:5:"中文字长度";"
and in php 5.6.9 the serialize result is:
s:15:"中文字长度";
The text was updated successfully, but these errors were encountered: