You are here:  » Problems with charset "utf-8" and "iso-8859-1"


Problems with charset "utf-8" and "iso-8859-1"

Submitted by hansi on Thu, 2006-11-09 01:11 in

Hello David,

I have 150 .csv files fom one affiliate and 140 .csv files from another affilaiate.
The problem ist that the files from one affili runs OK with $config_charset = "utf-8"; and the another affiliate runs OK with "iso-8859-1". But I need both kind of affiliate .cvs's

What can I do?
Is it possible to change something with "search and replace"?

Best regards,
hani

Submitted by support on Thu, 2006-11-09 08:30

Hi hani,

There are 2 filters that can help with this scenario - "UTF8 Encode" and "UTF Decode". UTF8 Encode will convert data from a feed in iso-8859-1 encoding into UTF-8. UTF Decode performs the opposite translation, converting data from UTF-8 into iso-8859-1.

Therefore, what I would recommend is setting $config_charset to be the character set of the majority of your feeds (.e.g. "utf-8"), and then using the appropriate filter on the product name and description fields of the feeds using the other encoding...

Cheers,
David.