News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Does MASM compiler support unicode source files?

Started by Victor Stout, December 27, 2010, 01:41:23 AM

Previous topic - Next topic

Victor Stout

Hello everyone. When I save .asm file in Notepad as ANSI - it compiles, but when I save it as Unicode then A2044 error (invalid character in file) is produced. How can I successfully use a unicode file? Thanks.

P.S. Glad to join the community.


Victor Stout

Thanks for responce dedndave. Are Unicode files supported by ml compiler itself? I wouldn't like to use any third party tools, only those that come with Windows SDK and Visual Studio.

dedndave

actually, i have never tried it
if i were to use unicode strings, i would probably put them in a resource file

Victor Stout

Quote from: dedndave on December 27, 2010, 02:29:00 AM
if i were to use unicode strings, i would probably put them in a resource file
Good idea.

ToutEnMasm

If the "A2044 error " is an ml error,you need yo modify the defaut code page.
Is this can be done only for one page,I don't know but it seems possible.
Try to make a batch with the chcp command
Quote
SET ...
chcp N
..
ml /C ..


GregL

I don't think ml.exe can handle a Unicode file. Save your source code file as an ASCII file.

dedndave

i think the resource compiler is the way to fly
refer to RC.HLP in \masm32\bin folder
"MESSAGETABLE" statement
ResEd, ResEdit, and the others probably have a better way to handle it
i am just learning how to use these tools   :P