6 posts in this topic
I have recorded a gui installation and modified the au3 file as per my requirement.
But the problem is, whenever I try to compile the au3 file, I am getting a special character on top of the file.
Can you suggest how to resolve this as it is appearing everytime during compilation.
And also I am trying to include a au3 file which is separate folder so I am adding the <..\Library.au3> line.
It is able to pick that but in that file "Library.au3" there is a file install line.
FileInstall(".\SendMail.ps1", @ScriptDir & "\SendMail.ps1") Library.au3 is being used by many other codes in the previous folder..
But the current file is looking for the ps1 file in current folder.
So is there any option to tell the compiler to pick the dependent files relative to Library.au3 instead of the current code.
I've written a script that pulls info from some web pages, saves the results to variables, and prints it out to a Word document. I've tried to make this script work with a minimum of user interaction. I've noticed an issue happens when I run the script and I have another window set as active, like SciTE for example. It inserts an "ETX" character. I've done this with Notepad too. It displays an upside down L character. Any particular reason why? Unfortunately, I can't post any code. Basically, it gets a collection of tags, applies a test to find the values I want, then pulls the innerhtml from said tag. Then it assigns the results to a global variable. Any help would be appreciated.
I've ported toUTF8() function (truly, the whole Encoding class) by Sebastián Grignoli to AutoIt. It offers useful functions to force a string to be in a specified charset in a really easy way.
From the readme file:
$utf8_string = toUTF8($utf8_or_latin1_or_mixed_string) $latin1_string = toLatin1($utf8_or_latin1_or_mixed_string) Also:
$utf8_string = fixUTF8($garbled_utf8_string) fixUTF8() converts the string to UTF-8 repeatedly until make sure it has only UTF-8 valid chars (it's really UTF-8).
#include 'forceutf8.au3' MsgBox(0, '', fixUTF8( 'Ã£Ã©' ) ) Will output:
ãé Note that it's just a port. If you look at both the source codes together (PHP and AutoIt), you'll see that they're exactly the same thing, but in different approaches (PHP arrays converted to Scripting.Dictionary objects, function renames, syntax porting, a few functions completely rewritten due to differences between PHP and AutoIt). Therefore, all credits goes to Sebastián Grignol.
It seems that it works only with latin/roman alphabet (used by English).
Download ZIP from Github
Fork me on Github
Ok, i have deleted the post... uhm, sorry, i have posted something that i shouldn't have without reading the forum rules. My apologies
First, the value of my $LineArray is "歌词制作 生态。破坏"..
And whenever I tried to run this code:
FileWriteLine($PathName, $LineArray & @CRLF) The line of the created file produced the "???? ?????" null characters..
Now, what can I do to make it write the original (I think) Chinese characters?