spspspsp has asked for the wisdom of the Perl Monks concerning the following question:
Hi, How do I make sure the accented characters are interpreted correctly? For example, when I view this URL http://freegeoip.net/xml/202.168.253.162 in my browser, I see accented characters just fine, e.g. <RegionName>Dhāka</RegionName>
However, when I fetch this URL in my Perl script, the accented character comes out garbled. In fact, when I fetch the URL with curl on a Linux shell prompt, it still comes out garbled.
So the question is how do I make sure that I see the accented characters properly in my script? Thank you very much!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: accented characters are garbled
by Anonymous Monk on Feb 16, 2013 at 09:35 UTC | |
Re: accented characters are garbled
by Anonymous Monk on Feb 16, 2013 at 12:05 UTC | |
by spspspsp (Initiate) on Feb 18, 2013 at 07:58 UTC | |
by Anonymous Monk on Feb 18, 2013 at 08:40 UTC | |
by Anonymous Monk on Feb 18, 2013 at 11:02 UTC | |
Re: accented characters are garbled
by 2teez (Vicar) on Feb 16, 2013 at 10:50 UTC | |
by 7stud (Deacon) on Feb 16, 2013 at 16:45 UTC | |
by afoken (Chancellor) on Feb 16, 2013 at 17:00 UTC | |
by 7stud (Deacon) on Feb 16, 2013 at 17:20 UTC |
Back to
Seekers of Perl Wisdom