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

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

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

New User

Oct 27, 2009, 11:06 PM

Views: 686
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)

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