SOLVED Re: perl unicode utf8 and JSON::XS

2013-04-09 Thread Christophe Martin
Hello, Thank you Brandon McCaig and John Delacour for your answers. They both point me to my mistakes. The major problem was that I did not understand at all how perl deals with strings. First I have to use "use utf8" if i want perl to understand 'é' and not 'Ã' '©' when I write 'é' in my script

Re: perl unicode utf8 and JSON::XS

2013-04-08 Thread Brandon McCaig
On Mon, Apr 08, 2013 at 01:07:13PM -0400, Brandon McCaig wrote: > use Data::Dumper; > use Encode; I should note that neither of these packages were used in the example program that I posted and aren't required for it to run. :) They were just remnants from debugging... Regards, -- Brandon McCa

Re: perl unicode utf8 and JSON::XS

2013-04-08 Thread Brandon McCaig
On Sun, Apr 07, 2013 at 06:08:52PM +0200, Christophe Martin wrote: > Hello , Hello, > I'm trying to use JSON::XS. The trouble is that I have French strings > with accented chars. The solutions I tried don't work. Also, I'm > not sure i understand JSON::XS doc on unicode and utf. > > I use linux.