| 1 |
; Unicode installers will not be able to run on Windows 9x! |
| 2 |
Unicode true |
| 3 |
|
| 4 |
Name "Unicode Games" |
| 5 |
OutFile "unicode.exe" |
| 6 |
RequestExecutionLevel User |
| 7 |
ShowInstDetails show |
| 8 |
XPStyle on |
| 9 |
|
| 10 |
|
| 11 |
Section "Unicode in UI" |
| 12 |
|
| 13 |
DetailPrint "Hello World!" |
| 14 |
DetailPrint "שלום עולם!" |
| 15 |
DetailPrint "مرحبا العالم!" |
| 16 |
DetailPrint "こんにちは、世界!" |
| 17 |
DetailPrint "你好世界!" |
| 18 |
DetailPrint "привет мир!" |
| 19 |
DetailPrint "안녕하세요!" |
| 20 |
|
| 21 |
DetailPrint "${U+00A9}" # arbitrary unicode chars |
| 22 |
|
| 23 |
SectionEnd |
| 24 |
|
| 25 |
|
| 26 |
Section "Unicode in Files" |
| 27 |
|
| 28 |
Var /Global Message |
| 29 |
|
| 30 |
InitPluginsDir |
| 31 |
FileOpen $0 "$PluginsDir\Test.txt" w |
| 32 |
IfErrors done |
| 33 |
FileWriteUTF16LE /BOM $0 "Hello World " |
| 34 |
FileWriteWord $0 0xD83C # Manually write ${U+1F30D} |
| 35 |
FileWriteWord $0 0xDF0D # as surrogate-pair |
| 36 |
FileWriteUTF16LE $0 " and Sun ${U+2600}$\r$\n" |
| 37 |
FileClose $0 |
| 38 |
|
| 39 |
FileOpen $0 "$PluginsDir\Test.txt" r |
| 40 |
IfErrors done |
| 41 |
FileReadUTF16LE $0 $Message |
| 42 |
FileClose $0 |
| 43 |
|
| 44 |
DetailPrint "Message: $Message" |
| 45 |
done: |
| 46 |
|
| 47 |
SectionEnd |