in reply to Re: Lost in encoding in Twig
in thread Lost in encoding in Twig
The recommendations by pcouderc are the usual ones, and I would actually code the script that way. But the fact is that when I run your script as originally posted and cat the output I get '<myxml fille="clémence"/>'. Have you looked at xml.out with 'hexdump -C'? If you see 'clémence' encoded as '63 6c c3 a9 6d 65 6e 63 65' it means your Perl output is correct. But if your command shell is set to interpret output as ISO Latin-1 you would get 'clémence' even if your script is doing the right thing.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Lost in encoding in Twig
by pcouderc (Monk) on Jan 09, 2015 at 13:37 UTC | |
by hippo (Archbishop) on Jan 09, 2015 at 13:58 UTC | |
by pcouderc (Monk) on Jan 09, 2015 at 14:59 UTC | |
by hippo (Archbishop) on Jan 09, 2015 at 15:36 UTC |