flat assembler
Message board for the users of flat assembler.

Index > Windows > Source code containing unicode.

Author
Thread Post new topic Reply to topic
FlatSwede



Joined: 22 May 2013
Posts: 4
FlatSwede 22 May 2013, 23:44
Hi!

Does FASM in any way support the source code to be in UTF-8?
I would like to be able to type Korean characters right into my source code and then let FASM convert it to UTF-16 for Windows to handle (I use DU to make it unicode, but FASM doens't understand that the string is actually UTF-Cool.

How would I solve this?

Thank in advance,
FlatSwede Smile
Post 22 May 2013, 23:44
View user's profile Send private message Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr 23 May 2013, 04:23
FlatSwede,

You may try to include "Encoding/UTF8.Inc", like it's done there. Perhaps Tomasz should emphasize that in manual.
Post 23 May 2013, 04:23
View user's profile Send private message Reply with quote
FlatSwede



Joined: 22 May 2013
Posts: 4
FlatSwede 23 May 2013, 12:42
Nice!
To be honest, I didn't dig deep enough into the manuals. I thought that explanation with DU was the only unicode support there was.

Thank you! Smile

Would be neat if it was possible to enable UTF-8 by just typing a line at the beginning of the source file, like "encoding utf-8" or "encoding ansi", as well as typing it into a paramter when executing fasm.exe, such as /utf8
Post 23 May 2013, 12:42
View user's profile Send private message Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr 24 May 2013, 20:17
FlatSwede,

In fact, fasm don't care about its input encoding (except for BOM, that invisibly appear as symbol at start of file). You may freely use UTF-8–encoded symbols in your source, all characters that are special for fasm belong to ASCII.
Post 24 May 2013, 20:17
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.