Menu

#2 ICONV: more robust translation

open
nobody
None
5
2005-05-10
2005-05-10
Anonymous
No

Hi,

Some feeds gets truncated by iconv due to illegal
characters in the feed (e.g.
http://news.bbc.co.uk/rss/chinese/simp/in_depth/americ
as/2005/bush_inauguration/rss091.xml)

Adding //TRANSLIT//IGNORE to the iconv output
encoding makes it more robust.

$encoded_source = iconv($in_enc,'UTF-
8//TRANSLIT//IGNORE', $source);

Best regards

The Artvark

Discussion


Log in to post a comment.