Php Html Encoding
I'm trying to parse a HTML page, but the encoding is messing my results. After some research I found a very popular solution using utf8_encode() and utf8_decode(), but it doesn't c
Solution 1:
Try using the following without a prior utf8_decode()
:
mb_convert_encoding($str, 'ISO-8859-1', 'UTF-8');
Alternatively, don't use utf8_decode()
and try to change your website meta to:
<metahttp-equiv="content-type"content="text/html; charset=UTF-8" />
Post a Comment for "Php Html Encoding"