James Gray
9/30/2008 1:59:00 PM
On Sep 30, 2008, at 8:20 AM, Hubert =C5=81=C4=99picki wrote:
> 2008/9/30 James Gray <james@grayproductions.net>:
>> On Sep 30, 2008, at 7:30 AM, Hubert =C5=81=C4=99picki wrote:
>>
>>> I am using Iconv library wrapper to convert texts to UTF8, but it's
>>> throwing "Iconv::IllegalSequence" exception.
>>
>> You can add a //TRANSLIT to the end of the "to" encoding to have =20
>> Iconv
>> attempt to convert characters to reasonable equivalents in that =20
>> encoding.
>> This is usually more helpful when your input is all one encoding =20
>> and just
>> has some characters that won't translate well (like a UTF-8 =E2=80=A6 =
=20
>> going to
>> ISO-8859-1).
>>
>> Your case of mixed encodings is probably best handled with //IGNORE =20=
>> instead,
>> which asks Iconv to skip over any characters that cannot be =20
>> converted. You
>> will loose some data with this, but it will convert what it can.
>>
>> You can also use //TRANSLIT//IGNORE to convert what can be =20
>> converted and
>> skip the rest.
>>
>
> Thanks, //IGNORE//TRANSLIT seems to help a bit - but it's not perfect.
You listed those backwards. Is that really what you tried? Does =20
reversing them make any difference?
James Edward Gray II=