|more useful options|
encoding questionby 7stud (Deacon)
|on May 20, 2010 at 07:00 UTC||Need Help??|
7stud has asked for the
wisdom of the Perl Monks concerning the following question:
I have a latin-1 string that I am trying to do some substitutions on, but the substitution is not happening:
The output from the first say(), indicates there is something wrong from the very beginning. Instead of seeing an "A with circumflex", I see an "A with tilde". Then no substitution is performed, and I see the same string that is output the first time. My terminal is set to Latin-1.
If I add a use utf8 statement, then for the first say() I see "A with diaeresis(umlaut)", but then the substitutions are performed, and the second say() outputs "Tht pple". However, the utf8 docs specifically warn against using a use utf8 statement for upper Latin-1 codes, and also because I'm not using any utf8 characters in my program file, it doesn't make sense to me to include that statement.
How can I get the first say() to output a string where I see "A with circumflex", and how can I get the substitution to work as well?