Re: about utf8

2011-01-29 Thread xiaolan
On Sat, Jan 29, 2011 at 9:46 PM, Shawn H Corey wrote: > On 11-01-29 03:27 AM, xiaolan wrote: >> >> Hello, >> >> I'm not much sure what's the difference between the two statements below? >> >> use encoding 'utf8'; >> use utf8; >> >> I have read their documents but not very understandful. >> >> Than

Re: about utf8

2011-01-29 Thread Shawn H Corey
On 11-01-29 03:27 AM, xiaolan wrote: Hello, I'm not much sure what's the difference between the two statements below? use encoding 'utf8'; use utf8; I have read their documents but not very understandful. Thanks. `use utf8;` tells the compiler that the script is written in UTF-8. That's a

about utf8

2011-01-29 Thread xiaolan
Hello, I'm not much sure what's the difference between the two statements below? use encoding 'utf8'; use utf8; I have read their documents but not very understandful. Thanks. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org ht

Re: about utf8 translation

2005-11-29 Thread Jeff Pang
I have resolve this problem,as: $subject = encode("euc-cn", decode("utf8", $subject)); Sorry for bothering. 在 05-11-30,Jeff Pang<[EMAIL PROTECTED]> 写道: > Hi,lists, > > I have a file looking as below: > > <[EMAIL PROTECTED]> 145K179B 璧搴? > <[EMAIL PROTECTED]>

about utf8 translation

2005-11-29 Thread Jeff Pang
Hi,lists, I have a file looking as below: <[EMAIL PROTECTED]> 145K179B 璧搴? <[EMAIL PROTECTED]>171K122B ���璇� <[EMAIL PROTECTED]> 28K904B ���K60830 <[EMAIL PROTECTED]> 243K600B ��规�寮�? <[EMAIL PROT

Re: about utf8

2005-09-14 Thread Jay Savage
On 9/14/05, Jeff Pan <[EMAIL PROTECTED]> wrote: > HI, > > I want to translate some utf8 characters to appropriate characters.I use > utf8 module,but it seems to work uncorrectly. > > This is the code: > > > use utf8; > #if (utf

about utf8

2005-09-14 Thread Jeff Pan
HI, I want to translate some utf8 characters to appropriate characters.I use utf8 module,but it seems to work uncorrectly. This is the code: use utf8; #if (utf8::valid($subject)) if (Encode::is_utf8($subject)) {