Trysil 0 Posted September 18, 2011 (edited) I have written a script wich gets the text from a program window and saves it to a file. However some special characters are not displayed correctly. For example @ gets to be ), β gets to be * and so on. Is there a way to get these caracters to be saved correctly? I use WinGetText to get the text and FileOpen and FileWriteLine to save the file. I use FileOpen ( "output.txt", 129) to open the file, and $text = WinGetText("Programname","") to get the text. There seams to be a problem getting special characters with WinGetText command. Edited September 18, 2011 by Trysil Share this post Link to post Share on other sites
Trysil 0 Posted September 18, 2011 The program seams to use a special encoding or formating. When copying text from the program window manually to notepad++ it pastes ) instead of α using any encoding in the document avaviable. If I pase the text into word as formatted text it displays correctly. What to do? Share this post Link to post Share on other sites
JohnOne 1,603 Posted September 18, 2011 Have you tried any other modes besides 129? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Share this post Link to post Share on other sites
Trysil 0 Posted September 18, 2011 The special characters seams to have a special font on them, when saving the pasted α character in word to a html, the α has the following code and displays correctly in a browser: <span style='font-family:"WW Font"'>)</span> Copying and pasting seams to be the only way to get theese characters, or is it another way? I liked WinGetText() because it could run in the background. Share this post Link to post Share on other sites