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.