Użytkownik Ed Leafe napisał:
> On Sep 30, 2010, at 9:22 PM, Paul McNett wrote:
>
>    
>> Hmm, maybe. What would happen if a report was created on Windows, and the 
>> xml got
>> saved with encoding="cp-1252" and the person tried to run the report on 
>> Linux?
>>      
>
>       Look at xmltodict, line 399:
>
> header = '<?xml version="1.0" encoding="%s" standalone="no"?>%s' \
>               % (default_encoding, eol)
>
>       In this case, 'default_encoding' is dabo.getEncoding().
>
>       If the document was encoded with cp-1252, you'd want to use the same 
> encoding to decode it, right? Linux can decode cp-1252; it just doesn't 
> default to it.
>    

Does it mean, that developer must change Dabo encoding
from e.g. EUC_JP to CP1252 to decode this document correctly?
I think, it should be rule of thumb, that document is decoded with
proper encoding (if defined), transparently.
AFAIK, DOM parser works in this way.

-- 
Regards
Jacek Kałucki


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to