CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: convert a UNICODE file to ANSI without using Filehandling: Edit Log



zgum
New User

Oct 27, 2009, 11:06 PM


Views: 401
convert a UNICODE file to ANSI without using Filehandling

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)


Edit Log:
Post edited by zgum (New User) on Oct 27, 2009, 11:12 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives