Open lucyllewy opened 7 years ago
serialize/unserialize translates unicode strings according to current PageEncoding which is set to default windows culture by default. I would always recommend to set PageEncoding to UTF-8 to avoid all these issues.
serializing a multibyte character and then unserializing it again in Phalanger causes character to change when echoed as shown in the testcase below.
Phalanger behaves differently to PHP in this respect:
é
in both echo attempts with$val1
and$val2
respectively.é
from$val1
, but?
from$val2
..