Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Unable to retreive unicode characters in perl 5.10.x

by sathya_myl (Acolyte)
on Sep 24, 2012 at 15:00 UTC ( #995405=perlquestion: print w/ replies, xml ) Need Help??
sathya_myl has asked for the wisdom of the Perl Monks concerning the following question:

UTF Characters are Displaying as diamond characters in PERL 5.10

Input
Wärtsilä UTF8

output
W�rtsil� UTF8

Comment on Unable to retreive unicode characters in perl 5.10.x
Re: Unable to retreive unicode characters in perl 5.10.x
by Anonymous Monk on Sep 24, 2012 at 15:19 UTC

    perl generally does no displaying , it leaves that up to the shell/GUI toolkit/browser ... so you'll have to rephrase your question, provide more detail

    See perlunitut: Unicode in Perl

Re: Unable to retreive unicode characters in perl 5.10.x
by Anonymous Monk on Sep 24, 2012 at 15:32 UTC
    The characters are displaying as diamonds because your display does not know to expect UTF characters. Whenever a binary sequence is encountered which cannot be translated by the current display code-page to some appropriate graphic, a placeholder of this sort is generated ... by the display, not by the Perl code.
Re: Unable to retreive unicode characters in perl 5.10.x
by moritz (Cardinal) on Sep 24, 2012 at 18:58 UTC
Re: Unable to retreive unicode characters in perl 5.10.x
by remiah (Hermit) on Sep 25, 2012 at 05:01 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2014-08-30 16:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (293 votes), past polls