Azih has asked for the wisdom of the Perl Monks concerning the following question:
This output is coming into a MSDOS command prompt window
The code I'm using is this:
The file test.txt consists of this line.open(PARTY_FILE, "../Data/test.txt"); while ($file_line = <PARTY_FILE>) { print "$file_line\n"; }
IF test.txt is encoded in ANSI then my code spits out this output:Québécois
QuΘbΘcois
IF test.txt is encoded in UTF-8 my code spits out this output:Québécois
IF test.txt is encoded in Unicode my code spits out this output:■Q u Θ b Θ c o i s
Code tags added by Arunbear; (update: removed code tags around output)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reading text file with French characters
by graff (Chancellor) on Oct 15, 2006 at 19:54 UTC | |
|
Re: Reading text file with French characters
by ForgotPasswordAgain (Vicar) on Oct 15, 2006 at 16:09 UTC | |
|
Re: Reading text file with French characters
by Joost (Canon) on Oct 15, 2006 at 16:25 UTC |