Michael Gerz wrote:
> Peter Kümmel schrieb:
>>> Is there any way to determine the encoding of a file? Can't any file be
>>> considered as UTF-8 (even if it is not encoded in UTF-8)?
>>>     
>>
>> Georg's comment in bugzilla is
>>
>>  
>>>>> Yes, LyX treats all text files as utf8, and iconv can choke on
>>>>> non-utf8 text
>>>>>         
>>
>>   
> 
> Oh, that means that there are some byte combinations that don't make a
> UTF-8 character. Interesting.
> 
> However, with 8-bit local encoding, every file should be acceptable. The

Are you sure? As I understand it local8bit is the concrete value of the system
which iconv uses,  for instance ARMSCII-8 ( 
http://www.gnu.org/software/libiconv/ )
and then it is still possible that converting fails.

> second error message will never occur. Maybe you should raise a warning

You mean a message box should pop up? This could be annoying
when you import a lot.

> if UTF-8 fails and you try to use 8-bit-local. 
> Michael
> 




-- 
Peter Kümmel

Reply via email to