chr() and character set

P

Peter Michael

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
 
B

Brian McCauley

Peter said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top