Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^11: how to output file in Unicode

by anakin30 (Acolyte)
on Aug 28, 2012 at 07:17 UTC ( #990163=note: print w/ replies, xml ) Need Help??


in reply to Re^10: how to output file in Unicode
in thread how to output file in Unicode

i changed it once, but it doesn't work out, i still seeing the character as "Björn".

i don't know why? but how to ensure the output was delivered in UTF-8 encoded? is there any way i can prove?

why the string still displayed as "Björn" even though i set the output to encoding(UTF-8), as below line

open (OUTPUT, ">:encoding(UTF-8)",$outputfile) or die "Cannot open filename for input: $!";


Comment on Re^11: how to output file in Unicode
Download Code
Re^12: how to output file in Unicode
by anakin30 (Acolyte) on Aug 28, 2012 at 08:49 UTC

    when i open the generated csv output file in excel, and when i click "save as" i see the file recognized as a *.csv file.

    Any other i can use to check the file being open on which format or encoding??

      Use the "file -> open" dialog. There you can specify the encoding for text files in Excel.

        i can only see, "file of type" when i click open in Microsoft excel

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2015-07-02 02:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (25 votes), past polls