grscott has asked for the wisdom of the Perl Monks concerning the following question:
I wonder if someone can offer some wisdom, please, regarding a problem that has come my way:
I have a UTF8 file that contains mixed Latin and Arabic text that was extracted from a database that was encoded as ISO-8859-1 - so, essentially, as I understand it, the file is a utf8 encoding, of an ISO-8859-1 encoding, of Latin and non-Latin text (don't ask! :-).
I am trying to parse this stuff into a format suitable for insertion into a UTF-8 database, but am having trouble with the non-Latin stuff. The Latin stuff is fine.
I have not needed to mess around with encodings much in the past, so am rather out of my depth. I have tried various alternative 'layerings' or 'raw', 'utf8', and 'iso-8859-1' to try to get back to something that will go into the database and display correctly, but so far with no luck - different combinations produce different output, of course; but so far none of it any more helpful than what I started with!
Is it even possible to achieve what I am attempting?? If so, any pointers would be most gratefully received!
Thanks in advance!
GRS
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Encoding problem
by ikegami (Patriarch) on May 08, 2009 at 18:26 UTC | |
by grscott (Novice) on May 08, 2009 at 18:44 UTC | |
by ikegami (Patriarch) on May 08, 2009 at 19:08 UTC | |
by grscott (Novice) on May 08, 2009 at 19:34 UTC | |
by ikegami (Patriarch) on May 08, 2009 at 20:08 UTC | |
|
Re: Encoding problem
by John M. Dlugosz (Monsignor) on May 09, 2009 at 00:00 UTC | |
|
Re: Encoding problem
by Burak (Chaplain) on May 08, 2009 at 18:15 UTC | |
|
Re: Encoding problem
by graff (Chancellor) on May 09, 2009 at 15:50 UTC | |
|
Re: Encoding problem
by grantm (Parson) on May 09, 2009 at 22:54 UTC |