Perl Encode - UK characters -
This is a part 2 question.
So I'm trying to: Encoding functionality but there is no luck at all.
  Use encoded; Use utf8; # Should print: ISO-8859-15 print "Latin-9 encoding:". Fund_exode ("Latin 9") - & gt; Name. "\ N"; My $ enqueque = encode ("ISO-8859-15", "UK €"); Print "Encoded UK:" $ Nqe "\ N";   Result:
  Encoded UK: UK €   Should not the results be encoded? Am I doing wrong here?
Edit:
Suggestions added:
  use utf8;   And now I get this:
  Encoded UK: UK   Now pulling the hair: /
Do not drag your hair You have done everything right, have finished and already receive the desired data Has been doing; The production is confusing you because you might see it from the terminal which is not set to Latin-9, but for a different encoding, maybe UTF-8
  & gt; Perl -e'use utf8; Use encoded; Print Latin-9 "," Euro € "'Euro' Perl -e'use utf8; Use encode; Print encode" Latin-9 "," Euro € "'| Hex 0000 45 75 72 6 F20 A4 euro   .
Comments
Post a Comment