Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Text::CSV_XS and encoding

by BillKSmith (Monsignor)
on Sep 16, 2018 at 20:21 UTC ( [id://1222476]=note: print w/replies, xml ) Need Help??


in reply to Text::CSV_XS and encoding

I ran you code "as is" on Strawberry perl 5.24.1 under Windows 7. The output in the command window was different than yours, but wrong. I then redirected the output to a file. That file is displayed correctly by both the editor "gvim" and the browser "Internet Explorer". To remove any ambiguity, I have converted that file to hex with the utility "xxd" which ships with vim.
C:\Users\Bill\forums\monks>xxd tmp.txt 00000000: 2456 4152 3120 3d20 5b0d 0a20 2020 2020 $VAR1 = [.. 00000010: 2020 2020 207b 0d0a 2020 2020 2020 2020 {.. 00000020: 2020 2020 2741 6472 6573 2720 3d3e 2027 'Adres' => ' 00000030: 4c69 eb72 272c 0d0a 2020 2020 2020 2020 Li.r',.. 00000040: 2020 2020 2757 6f6f 6e70 6c61 6174 7327 'Woonplaats' 00000050: 203d 3e20 27f4 6c73 7465 6e27 2c0d 0a20 => '.lsten',.. 00000060: 2020 2020 2020 2020 2020 2027 4e61 616d 'Naam 00000070: 2720 3d3e 2027 5065 7465 7227 0d0a 2020 ' => 'Peter'.. 00000080: 2020 2020 2020 2020 7d0d 0a20 2020 2020 }.. 00000090: 2020 205d 3b0d 0a ];..
Bill

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1222476]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-16 13:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found