For a readable-form I would go with JSON. It’s not required to escape non-ASCII characters in JSON, but PHP does:
echo json_encode("tchüß");
"tch\u00fc\u00df"
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
- PHP: Convert unicode codepoint to UTF-8
- Storing and displaying unicode string (हिन्दी) using PHP and MySQL
- 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
- PHP DOMDocument loadHTML not encoding UTF-8 correctly
- SET NAMES utf8 in MySQL?
- file_get_contents() Breaks Up UTF-8 Characters
- How to avoid echoing character 65279 in php?
- How to best configure PHP to handle a UTF-8 website [duplicate]
- How to sort an array of UTF-8 strings?
- Convert ASCII TO UTF-8 Encoding
- PHP replacing special characters like à->a, è->e
- What factors make PHP Unicode-incompatible?
- What is normalized UTF-8 all about?
- Is “SET CHARACTER SET utf8” necessary?
- How to handle user input of invalid UTF-8 characters
- How to reverse a Unicode string
- Split string into sentences using regex
- PHP: using DOMDocument whenever I try to write UTF-8 it writes the hexadecimal notation of it
- php regex word boundary matching in utf-8
- MongoDB PHP UTF-8 problems
- How to convert all characters to their html entity equivalent using PHP
- Is a BLOB converted using the current/default charset in MySQL?