sumeetgrover has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I have tried looking for some information about converting UTF8 data into Latin1 and could not find exactly what I was looking for.
Background: I have a UTF8 RSS feed supplied to us by our clients. I have parsed the RSS data into appropriate data structures.
Now, the problem is that all our database and website pages only support Latin1 / ISO-8859-1 encoding. I would like to encode the UTF8 data into Latin1, but what turns out are some extra or junk characters when converted into Latin1.
QUESTION:
1. Is it possible to convert UTF8 data into Latin1?
2. If it is possible, how to do it?
I have tried using the encode("iso-8859-1",$string) function to encode UTF8 data into Latin1, but as I mentioned, it introduces extra or junk characters.
Any suggestions?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Converting UTF8 to Latin1
by Corion (Patriarch) on Jun 20, 2012 at 08:32 UTC | |
Re: Converting UTF8 to Latin1
by grantm (Parson) on Jun 20, 2012 at 10:16 UTC | |
Re: Converting UTF8 to Latin1
by Neighbour (Friar) on Jun 20, 2012 at 08:34 UTC | |
by moritz (Cardinal) on Jun 20, 2012 at 10:21 UTC | |
Re: Converting UTF8 to Latin1
by Anonymous Monk on Jun 20, 2012 at 09:04 UTC | |
Re: Converting UTF8 to Latin1
by ikegami (Patriarch) on Jun 20, 2012 at 17:27 UTC |