jimpark / unsis

Automatically exported from code.google.com/p/unsis
Other
59 stars 15 forks source link

WriteFile produces ANSI file #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. FileOpen $0 C:\tmp\test.txt" w
2. FileWrite $0 "語言"
3. FileClose $0

What is the expected output? What do you see instead?
I expect C:\tmp\test.txt to contain the chinese text. Instead, I only see two 
questionmarks in the file.

What version of the product are you using? On what operating system?
NSIS 2.46 Unicode on Windows 7, 32-bit.

Please provide any additional information below.
My script file is in utf-8 encoding.

Original issue reported on code.google.com by Larsso...@gmail.com on 5 Oct 2010 at 1:59

GoogleCodeExporter commented 9 years ago
Please use the correct API to write UTF16LE to your text file. The API for 
handling UTF16LE text files are FileWriteUTF16LE and FileReadUTF16LE.

Original comment by jim%scra...@gtempaccount.com on 10 Jan 2011 at 8:04