How do you determine if the result of your request is malformed utf8? If you display it on a website, remember that you have a well-formed metaconstruction in the main section, something like this:
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
or, another way to format it in php ...
<? ...somecode... header ('Content-type: text/html; charset=utf-8'); ...morecode...
Otherwise, the browser may try to display it using a different character encoding.
In general, PHP handles utf8 characters pretty well. Ofc some things need to be considered, here is a good summary about it .
source share