문제

I have database which contains unicode character of C/C++/Java source code.
but i want my system developed in PHP.
for example: i have string of unicode \u00c3khk\u201e\u2122r\u00d5kfk f\u00deku fku\u00bbk W\u00ed\u00c3kL\u2122 fhu Au?
now, how to decode this string with PHP

도움이 되었습니까?

해결책

i have got answer to decode this string.

$string="\u00c3khk\u201e\u2122r\u00d5kfk f\u00deku fku\u00bbk W\u00ed\u00c3kL\u2122 fhu Au?";
$string=json_decode('"'.$string.'"');

echo $string;  

i prints original string.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top