ASCII is a subset of UTF-8, so if a document is ASCII then it is already UTF-8.
More Related Contents:
- How to remove all non printable characters in a string?
- How do I remove  from the beginning of a file?
- PHP DOMDocument loadHTML not encoding UTF-8 correctly
- SET NAMES utf8 in MySQL?
- How do I use filesystem functions in PHP, using UTF-8 strings?
- Detect encoding and make everything UTF-8
- file_get_contents() Breaks Up UTF-8 Characters
- UTF-8 BOM signature in PHP files
- Elegant way to search for UTF-8 files with BOM?
- Convert utf8-characters to iso-88591 and back in PHP
- PHP: Convert unicode codepoint to UTF-8
- How to best configure PHP to handle a UTF-8 website [duplicate]
- Unable to retrieve UTF-8 accented characters from Access via PDO_ODBC
- How to sort an array of UTF-8 strings?
- Getting ’ instead of an apostrophe(‘) in PHP
- PHP replacing special characters like à->a, è->e
- How to set UTF-8 encoding for a PHP file
- Regex to detect invalid UTF-8 string
- php header excel and utf-8
- json_encode() non utf-8 strings?
- UTF-8 encoding for subject in contact form email
- How to iterate UTF-8 string in PHP?
- URL Decoding in PHP
- How can I detect a malformed UTF-8 string in PHP?
- php substr() function with utf-8 leaves � marks at the end
- How to check if letter is upper or lower in PHP?
- utf8_(en|de)code removed from php7?
- PHP json_encode json_decode UTF-8
- Is a BLOB converted using the current/default charset in MySQL?
- Decoding numeric html entities via PHP