[erlang-questions] xmerl utf-8 question

Bogdan Andu bog495@REDACTED
Wed Dec 9 10:03:41 CET 2015


That should be the unicode code point in hexadecimal,

but take a look here:

http://unicodelookup.com
and input ü

On Sunday, March 22, 2015 at 12:09:46 AM UTC+2, Charles Blair wrote:
>
> -include("/usr/local/lib/erlang/lib/xmerl-1.3.7/include/xmerl.hrl").
>
> -import(xmerl_xs, [xslapply/2, value_of/1, select/2, -built_in_rules/2]).
>
> -import(xmerl_lib, [find_attribute/2, markup/2, markup/3]).
>
> Using the above, Türkei is output as Tu\x{308}rkei (seven characters 
> beginning with "\", counted in vim, so it's not a display issue).
>
> I've tried to isolate the problem in various different ways and failed. 
> Has anyone else run into this? Were you able to address it, and if so, how? 
> I've run the XML input through an XSL stylesheet without issue. The issue 
> arises when translating the stylesheet to xmerl and running the same XML 
> through it.
>
> Thanks.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20151209/cfcf617c/attachment.htm>


More information about the erlang-questions mailing list