Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Why "Wide character in print"?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
C.DeRykus  
View profile  
 More options Oct 24 2012, 3:54 am
Newsgroups: comp.lang.perl.misc
From: "C.DeRykus" <dery...@gmail.com>
Date: Wed, 24 Oct 2012 00:54:24 -0700 (PDT)
Local: Wed, Oct 24 2012 3:54 am
Subject: Re: Why "Wide character in print"?

On Sunday, September 30, 2012 10:57:38 AM UTC-7, tcgo wrote:
> Hi!

> I just made a test code with Perl, using the Pi symbol with Unicode/UTF-8. That's the code:

> #!/usr/bin/perl

> use utf8;

> my $cosa = "Here is my ☺ résúmé \x{2639}!";

> print "$cosa\n";
> ...

Here's a follow-on with an observation/question for someone more knowledgeable about Perl unicode)

I don't know how 'use locale' affects this but I
only see the OP's expected display of characters
by using the "\N{U+...}" notation to force character
semantics:

#use utf8;
my $cosa = "Here is my \N{U+263A} résúmé \N{U+03C0}!";

Output:  Here is my ☺ résúmé π!

--
Charles DeRykus


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.