Oct 27, 2009, 11:06 PM
Post #1 of 1
convert a UNICODE file to ANSI without using Filehandling
I have converted a unicode file to ansi using
open(REGFILE, "<:encoding(UTF-16)", $PROFILE); # Convert Profile from Unicode to Ansi
@RegFile_Lines = <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?
(This post was edited by zgum on Oct 27, 2009, 11:12 PM)