Utf8_encode
Just paste your text in the form below, press UTF8 Encode button, and you get UTF8-encoded data. Press button, get UTF8. No ads, nonsense or garbage. Works with ASCII and Unicode strings. Keep in mind that, if you prepare URL for a connection and used the urlencode on some parameters and didn't use it on the rest of parameters, it will not be decoded automatically at the destination position if the not encoded parameters have special characters that urlencode encodes it. Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, PHP, Python, Bootstrap, Java and XML.
(PHP 4, PHP 5)
utf8_encode — Encodes an ISO-8859-1 string to UTF-8
Description
This function encodes the stringdata
to UTF-8, and returns the encoded version. UTF-8
bytes | bits | representation |
---|---|---|
1 | 7 | 0bbbbbbb |
2 | 11 | 110bbbbb 10bbbbbb |
3 | 16 | 1110bbbb 10bbbbbb 10bbbbbb |
4 | 21 | 11110bbb 10bbbbbb 10bbbbbb 10bbbbbb |

More info

Return Values
Returns the UTF-8 translation of data
.