Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > chr() and character set

Reply
Thread Tools

chr() and character set

 
 
Peter Michael
Guest
Posts: n/a
 
      11-04-2004
Hi,

perlfunc(1) says about chr()

Returns the character represented by that NUMBER in the
character set.

Which character set is this exactly and how can it be
controlled programmatically (in particular for arguments in
the range 128..255)?

Thanks for any hints.

Peter

 
Reply With Quote
 
 
 
 
Brian McCauley
Guest
Posts: n/a
 
      11-04-2004


Peter Michael wrote:

> perlfunc(1) says about chr()
>
> Returns the character represented by that NUMBER in the
> character set.
>
> Which character set is this exactly and how can it be
> controlled programmatically (in particular for arguments in
> the range 128..255)?


The short answer is Unicode. Which IIRC is the same as ISO-Latin1 for
that range.

But for details read the rest of the entry where it goes on to explain
all this.

If it doesn't then your version of Perl is old and doesn't understand
character sets. In that case strings are simply strings of bytes and
the concept of "which character set" does not apply.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
UTF-8 Character Encodings and "NO-BREAK SPACE" (dec: 202, hex: CA)Character mrdecav@gmail.com HTML 7 02-01-2009 11:05 PM
get wide character and multibyte character value George2 C++ 2 01-25-2008 08:59 AM
check and convert lower character to upper character alessio211734@yahoo.it C++ 3 11-18-2007 11:28 AM
character encoding +missing character sequence raavi Java 2 03-02-2006 05:01 AM
getting the character code of a character in a string Velvet ASP .Net 9 01-19-2006 09:27 PM



Advertisments