$utf8string = html_entity_decode(preg_replace("/U\+([0-9A-F]{4})/", "&#x\\1;", $string), ENT_NOQUOTES, 'UTF-8');
is probably the simplest solution.
More Related Contents:
- How to decode Unicode escape sequences like “\u00ed” to proper UTF-8 encoded characters?
- Reference: Why are my “special” Unicode characters encoded weird using json_encode?
- preg_match and UTF-8 in PHP
- Fixing broken UTF-8 encoding
- Storing and displaying unicode string (हिन्दी) using PHP and MySQL
- UTF-8 to Unicode Code Points
- can I get the unicode value of a character or vise versa with php?
- Trim unicode whitespace in PHP 5.2
- strlen() and UTF-8 encoding
- UTF8 Filenames in PHP and Different Unicode Encodings
- Trim unicode whitespace in PHP
- UTF-8 all the way through
- Unicode character in PHP string
- PHP: Replace umlauts with closest 7-bit ASCII equivalent in an UTF-8 string
- How to send UTF-8 email?
- How can I write a file in UTF-8 format?
- How to get code point number for a given character in a utf-8 string?
- Convert latin1 characters on a UTF8 table into UTF8
- PHP json encode – Malformed UTF-8 characters, possibly incorrectly encoded [duplicate]
- How to store the data in unicode in hindi language
- Regular expressions for a range of unicode points PHP
- Exotic names for methods, constants, variables and fields – Bug or Feature?
- How do I convert Word smart quotes and em dashes in a string?
- How to open file in PHP that has unicode characters in its name?
- Detect file encoding in PHP
- PHP messing with HTML Charset Encoding
- PHP function imagettftext() and unicode
- Using str_split on a UTF-8 encoded string
- Replacing invalid UTF-8 characters by question marks, mbstring.substitute_character seems ignored
- Is a BLOB converted using the current/default charset in MySQL?