
paramjit
New User
Jun 27, 2011, 12:08 AM
Post #1 of 2
(384 views)
|
|
unicode inperl
|
Can't Post
|
|
I am trying to write a string to a unicode file but not all the characters are written to the file my code is Code $file="Test1.enc"; open my $FH, ">:raw:encoding(UTF16-LE):crlf:utf8", "$file"; print $FH "\x{FEFF}"; print $FH "qy{zˇ{yŁ~"; print $FH "$enc1"; close $FH; can anyone please tell me what am i doing wrong when i open the Test1.enc i get qy{zˇ{yŁ~ Thanks
|