in reply to Re: Data::Dumper segfaulting.
in thread Data::Dumper segfaulting.

Ok, as Dave suggested, I tried taking 'use utf8' out, but that gives me some really wacky output :
1:$VAR1 = { 'key' => 'ä, ö, ü / à , Ã, Ã, à ¿Adónde vas?' }; Value is : ä, ö, ü / à , Ã, Ã, à ¿Adónde vas? 2:$VAR1 = { 'key' => 'ä, ö, ü / à , Ã, Ã, à ¿Adónde vas?' }; Value is : ä, ö, ü / à , Ã, Ã, à ¿Adónde vas? 2:$VAR1 = { 'key' => 'ä, ö, ü / à , Ã, Ã, à ¿Adónde vas?' };
Which I am guessing is just the byte values being shown. Good news is the it doesn't seg, but the characters are not what I want. What would be great if there was a way to take an arbitrarily complex hash structure, which can contain high bit characters, write the dumper of that out to file ( or just get the dumper back in a variable) , eval it back in without any change in information ... seems to be harder than it sounds. But it is certainly making for interesting times :-).

Replies are listed 'Best First'.
Re^3: Data::Dumper segfaulting.
by dave_the_m (Monsignor) on Apr 17, 2007 at 09:58 UTC
    Well, although its difficult to tell what you expect (since the HTML display of perlmonks may be adding another layer of uft8/bytes display confusion, it looks to me from the above that Data::Dumper is faithfully reproducing what it's being given, but what it's being given isn't what you expect, due to the spurious encode_utf8() that isn't required.

    Dave.

      You are absolutely correct, it does fix the problem very nicely. Thanks a lot.