$ser = \'a:2:{i:0;s:5:\"héllö\";i:1;s:5:\"wörld\";}\'; // fails $ser2 = \'a:2:{i:0;s:5:\"hello\";i:1;s:5:\"world\";}\'; // works $out = unserialize($ser); $out2 = un
I would advise you to use javascript to encode as json and then use json_decode to unserialize.