flat assembler
Message board for the users of flat assembler.
Index
> DOS > DOS encoding (#128..#255) |
Author |
|
LocoDelAssembly 03 Mar 2010, 21:01
You'll need something similar to http://flatassembler.net/docs.php?article=win32#1.7 .
This would be an interesting addition to the macro package as Windows console applications also use OEM charsets. |
|||
03 Mar 2010, 21:01 |
|
DimonSoft 03 Mar 2010, 21:18
LocoDelAssembly
So, I was right when looking for the solution in the ENCODING folder If someone could explain the way those includes work... Even having a little bit of experience writing simple macros, I still don't feel I can understand the file contents fully And, of course, the best solution would be to get a complete solution. |
|||
03 Mar 2010, 21:18 |
|
shoorick 04 Mar 2010, 06:14
see attach
_________________ UNICODE forever! |
|||||||||||
04 Mar 2010, 06:14 |
|
rugxulo 28 Mar 2010, 18:39
DimonSoft, can't you just use iconv or recode externally before assembling?
|
|||
28 Mar 2010, 18:39 |
|
shoorick 29 Mar 2010, 04:31
it's not handy to insert additional stage before assembling, esp. when multiply files used
|
|||
29 Mar 2010, 04:31 |
|
DimonSoft 17 Mar 2014, 13:45
The topic was started 4 years ago but it seems like nobody has posted a solution using a single include file from ENCODING folder yet. A few days ago my students asked me the same question: "How to use cyrillic characters in the source code?" So I've spent a little time and have a result to share.
There are 2 files in the attachment: one is called "safe", another is "unsafe". Both of them perform translation from Win1251 to OEM866, the only difference is that "safe" version doesn't map national characters like 'І', 'і', 'Ѕ', 'ѕ', etc. to latin 'I', 'i', 'S', 's', etc. On the other hand "unsafe" version abandons character semantics whenever possible to achieve the best visual appearance (less question marks '?'). And yes, characters that don't have equivalents in OEM866 are replaced with question marks. Usage: 1. Unpack files to your %fasminc%\ENCODING folder. 2. Include one of the files depending on your needs. 3. Declare your strings this way: strMyString dosstr "Мама мыла раму" --- Feel free to criticize, fix bugs and obviously use in your own projects.
|
|||||||||||
17 Mar 2014, 13:45 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.