
zgum
New User
Oct 27, 2009, 11:06 PM
Post #1 of 1
(216 views)
|
|
convert a UNICODE file to ANSI without using Filehandling
|
Can't Post
|
|
Hi, I have converted a unicode file to ansi using open(REGFILE, "<:encoding(UTF-16)", $PROFILE); # Convert Profile from Unicode to Ansi @RegFile_Lines = <REGFILE>; close(REGFILE); but i need to append back the strings so i followed it with open REGFILE, ">$PROFILE" or die $!; but the changes in between my script did not change. Is there a way to convert the file (in unicode to ansi) directly without using OPEN? Thanks...
(This post was edited by zgum on Oct 27, 2009, 11:12 PM)
|