Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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

Replies are listed 'Best First'.
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
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.

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 romping around the Monastery: (2)
As of 2016-07-02 05:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (18 votes). Check out past polls.