Download Pelles C here: http://www.smorgasbordet.com/pellesc/
QuoteIt seems that the assembler doesnt' encode properly the unicode text strings.Yes I think that ...
Replacing the special unicode characters with their respective hex values it works
Quotemsg dw 'This a UNICODE test 'Nice trick!
INCBIN "UnicodeText.txt"
dw 0
.386
.model flat,stdcall
option casemap:none
MessageBoxW PROTO :DWORD,:DWORD,:DWORD,:DWORD
MessageBox TEXTEQU <MessageBoxW>
ExitProcess PROTO :DWORD
.data
title dw 'UnicodeTest',0
msg dw 'This a UNICODE test '
INCBIN "UnicodeText.txt"
dw 0
.code
start:
invoke MessageBox,0,ADDR msg,ADDR title,0
invoke ExitProcess,0
END start
ă î ș ț
Quote from: Vortex on July 05, 2025, 12:06:24 PMHi LeraUnu,
Thanks, your example works fine but my Poasm test is always failing.
- What is the version of your Pelles C setup? Mine is 13
- What's the encoding of your Pelles C editor? Mine is UTF16-LE
Could you check the attachment? I guess my source file cannot correctly encode those special characters.
Quoteset the encoding of the source files to UTF-16LE and everything is ok.
Page created in 0.023 seconds with 11 queries.