0
4

2 に答える 2

1

Looks like a difference in encoding between the feed and you. You could try converting it to UTF-8 using the following:

$utf8_content = mb_convert_encoding($content, 'UTF-8', mb_detect_encoding($content));

Also double check your browser is set to UTF-8 as well.

于 2013-02-14T17:40:44.087 に答える
0

Following line of code fixed the garbage values issue for me :

$ret = $feed;     
echo htmlspecialchars_decode(htmlentities($ret, ENT_QUOTES | ENT_IGNORE, 'UTF-8')); 
于 2013-03-10T08:12:26.430 に答える