PapaParse icon indicating copy to clipboard operation
PapaParse copied to clipboard

Incorrect decoding of Windows-1252/ISO-8859-15

Open mateuszgazdziak opened this issue 5 years ago • 0 comments

Hi,

When I am handling csv file which is originally encoded with Windows-1252 (cp1252) via e.g. demo website: https://www.papaparse.com/demo and choose ISO-8859-15 as encoding in options, the special chars are decoded wrongly. I tested it for euro sign, which has 128 value in Windows-1252 and 164 in ISO-8859-15.

Parsing cp1252 encoded file with euro signs as ISO-8859-15 should end up displaying some other character in place of euro. However euro sign is visible in results.

What is more it doesn't work like that if I upload ISO-8859-15 encoded file and choose cp1252 as encoding. Euro sign is that case replaced with some other character.

mateuszgazdziak avatar Dec 09 '19 13:12 mateuszgazdziak