convert special characters to utf 8 php regex utf-8 code example Example: php convert string to utf8 utf8_encode ( string $data )