KRL RSS parser: handle encoding problems?

I am importing an RSS feed from Tumblr into a Kynetx app. It looks like the RSS feed has some encoding issues, since the apostrophes look like this:

Apostrophes encoded incorrectly

The channel (which you can find here ) claims to be encoded in UTF-8.

Is there a way to specify an encoding or replace these characters with regular apostrophes?

+2
source share
1 answer

Although this is not optimal, you can try to catch these encodings and replace them with the UTF-8 standard:

newstring = oldstring.replace(re/’/\'/);

Windows special chars

, -, , UTF-8, . RSS-. , , .

, , , UTF-8.

, Windows. , Western (Windows-1252).

Windows-1252 - , ISO 8859-1, ANSI .

, :

Windows-1252 ISO-8859-1. - MIME ISO-8859-1 Windows-1252 , ​​

Microsoft, Word, Windows-1252, ASCII, , " " (, ) © ( )".

KRL , UTF-8, ; , , , ISO-8859-1 Windows-1252.

+2
source

All Articles