[erlang-questions] [erlang-bugs] xmerl and unicode data

Anthony Ramine n.oxyde@REDACTED
Mon Oct 22 17:38:10 CEST 2012


Sorry, I just tested and I stand corrected, it just accepts a
binary or a list of bytes. My comment about character encodings
is still valid though.

-- 
Anthony Ramine





Le 22 oct. 2012 à 17:23, Ali Sabil a écrit :

> From my testing, xmerl doesn't seem to accept iolists
> 
> On Mon, Oct 22, 2012 at 4:58 PM, Anthony Ramine <n.oxyde@REDACTED> wrote:
>> It isn't weird. It is an iolist, a nested list of bytes and binaries,
>> not a list of characters. As the encoding of an XML document can only
>> be known by actually reading it, why should the input have some predefined
>> charset embedded in its type?
>> 
>> Regards,
>> 
>> --
>> Anthony Ramine
>> 
>> Le 22 oct. 2012 à 16:27, Patrik Nyblom a écrit :
>> 
>>> Me too - it's really weird. Rather the input format is weird, lists of UTF-8 characters are usually considered "broken". I would wrap this in a function taking a proper Unicode list as a parameter...
>> 




More information about the erlang-questions mailing list