uva has asked for the wisdom of the Perl Monks concerning the following question:
Anyone tell me why this is happening, i am wrinting in utf8 format only.but the Byte order mask shows different.why? help me in that. The actual Byte order mask for utf8 is "EF BB BF".use Encode; use Encode::HanConvert; $str8=gb_to_simp("中国的网页");#the str +ing inside this is chinese characters use utf8; open OUT,">:utf8","D:\\output1.doc" or print "could not open"; print "\n",utf8::is_utf8($str8),"\n\n\n"; print OUT $str8; close OUT; no utf8;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to determine the text file encoding
by ikegami (Patriarch) on Mar 16, 2006 at 17:43 UTC | |
|
Re: how to determine the text file encoding
by graff (Chancellor) on Mar 17, 2006 at 03:05 UTC | |
|
Re: how to determine the text file encoding
by Anonymous Monk on Mar 16, 2006 at 17:44 UTC |