utf8 questions.
- From: dazio_r@xxxxxxxxxxx (Rajarshi Das)
- Date: Mon, 18 Apr 2005 12:53:50 +0530
Hi,
I am using perl-5.8.6 on z/OS.
1) What is the BOM on z/OS ? Basically, I cant print the chars "\xFE\xFF". Even though \xFE is defined as Latin Capital Letter U with Acute, the char doesnt display. Also, \xFF isnt defined.
2) What is the difference between the utf8::encode and utf8::upgrade routines ?
e.g. $a = 'hello';
utf8::upgrade($a);
$a = "\xFE\xFF"; utf8::encode($a);
Should I use 'encode' when the scalar contains bytes and I need to convert those bytes into utf8 bytes (as in byte representation in unicode) ?
And use 'upgrade' when the scalar contains a normal string that I want to convert to a utf8 string of characters ?
Thanks in advance, Rajarshi.
_________________________________________________________________
Trailblazer Narain Karthikeyan http://server1.msn.co.in/sp05/tataracing/ Will he be rookie of the year?
.
- Follow-Ups:
- Re: utf8 questions.
- From: Jay Savage
- Re: utf8 questions.
- Prev by Date: Number of Items in Array
- Next by Date: RE: passing database data to a sub
- Previous by thread: Number of Items in Array
- Next by thread: Re: utf8 questions.
- Index(es):