somh Posted October 6, 2005 Share Posted October 6, 2005 Since Autoit cannot write unicode text file, I want to know if there is a way to perform this conversion after filewrite. Link to comment Share on other sites More sharing options...
bartekd Posted December 14, 2012 Share Posted December 14, 2012 Sorry to bring up this old subject, but is this possible? Link to comment Share on other sites More sharing options...
BrewManNH Posted December 14, 2012 Share Posted December 14, 2012 Why drag up a 7 year old thread that has no responses? AutoIt has changed drastically in the last 7 years. What are you attempting that doesn't work? If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator Link to comment Share on other sites More sharing options...
jchd Posted December 14, 2012 Share Posted December 14, 2012 Kudos, you're necroing a 7-year old post about a defunct version. Read the help file on FileRead and FileWrite, especially options. This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt) Link to comment Share on other sites More sharing options...
bartekd Posted December 14, 2012 Share Posted December 14, 2012 Sorry, I just was looking for a way to do this, but this was the only thread that I could search for that had something that I needed. I have a PHP file that I am trying to write to. When I use FileWrite or FileWriteLine, both of them create a file in ANCI format. I need the final file to be in UTF-8. I don't see any extra options in FileWrite or FileWriteLine to do this, so it could be something that is done after the fact. Is it possible to either have the filewriteline create a file in UTF-8, or convert it using autoit after the file has been created? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 14, 2012 Moderators Share Posted December 14, 2012 bartekd, Next time, please just open a new thread. We do not charge extra if you do - and it is infinitely preferable to necro-posting. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
bartekd Posted December 14, 2012 Share Posted December 14, 2012 Sorry guys, next time I will create a new thread. Anyone know of any solutions for my question? Link to comment Share on other sites More sharing options...
jchd Posted December 15, 2012 Share Posted December 15, 2012 Look at FileOpen where the various encoding options are available. This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt) Link to comment Share on other sites More sharing options...
bartekd Posted December 15, 2012 Share Posted December 15, 2012 Thanks, I ended up creating a new file in Notepad with that file format. I use that as my base, and any lines I write after that leave the file in the original format. Thanks for your help. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now