Source Code:
(back to article)
<?php // Define a string in Unicode escape sequence $unicode_string = "\u00e7af\u00e9 au lait"; // Convert the string from Unicode escape sequence to UTF-8 encoding $utf8_string = json_decode('"' . $unicode_string . '"'); // Output the result echo $utf8_string; // Output: "çafé au lait"
Result:
Report an issue