I am a Chinese student.
I discover if use Chinese in HLA source code, can not compile out executable file. :(
When I attempt to use Gas to compile the ASM file of HLA generation, point out
Hw. asm:
Assembler messages
Hw. asm:
8:
Error:
Can ' t open hw. extpub. inc for reading
Hw. asm:
8:
Hw. extpub. inc:
No error

Excuse me, how to should I use Chinese in HLA?
Posted on 2003-03-02 10:03:12 by gxl117
gxl117 is that when using chinese in your data or when in your comments? Or regardless of place?

could you maybe provide a tiny example app for Randall? If you wish you can attach it to your post via the "attach file" option below, so that others can take a look at it.
Posted on 2003-03-03 09:40:52 by Hiroshimator
If in the sentence of program have Chinese character can't compile .
But can use Chinese comments.
For instance:

program hw;
#include("stdlib.hhf");

begin hw;

stdout.put("????!!",nl); //print "Hello China!!"

end hw;

This will can not compile
But so can:

program hw;
#include("stdlib.hhf");

begin hw;

stdout.put("Hello China!!",nl); //print Chinese "????!!"

end hw;

Why????
How to should I solve?
Posted on 2003-03-03 10:55:20 by gxl117
it seems this is the problem (from the HLA documentation page on his site, emphasis mine)


Unicode String Constants

HLA lets you specify Unicode string literals by prefixing a standard string constant with a 'u' or a 'U'. Such string constants use the UTF/7 character set (that is, the standard ASCII character set) but reserve 16 bits for each character in the string. Note that the high order nine bits of each character in the string will contain zero.

As this was being written, there is no support for Unicode strings in the HLA Standard Library, though support for Unicode string functions should appear shortly (note that Windows' programmers can call the Unicode string functions that are part of the Windows' API).


chinese is a unicode characterset
Posted on 2003-03-05 05:28:42 by Hiroshimator
I've been looking at some Unicode stuff lately. I noticed that Notepad on Win2k can store text in UTF-8, UTF-16BE (big endian), and UTF-16LE (little endian, Win32 Unicode standard). It appears Wordpad won't recognize Unicode text unless the file starts with the Byte Order Mark. Notepad may be more intelligent.

UTF-8 would probably be the easiest way to go for HLA. It's more compact than straight Unicode (UTF-16). One could also take the VB approach of storing all strings in UTF-16. This way one could attempt to handle any text encoding a la Notepad.

In a properly formed UTF-8 file, multibyte characters do not have embedded "ASCII-7" characters, which would make it easy to parse strings. And ASCII-7 files are already valid UTF-8 files. For the U"string", a conversion from UTF-8 to UTF-16 would be needed.
Posted on 2003-03-07 14:02:23 by tenkey

I am a Chinese student.
I discover if use Chinese in HLA source code, can not compile out executable file. :(
When I attempt to use Gas to compile the ASM file of HLA generation, point out
Hw. asm:
Assembler messages
Hw. asm:
8:
Error:
Can ' t open hw. extpub. inc for reading
Hw. asm:
8:
Hw. extpub. inc:
No error

Excuse me, how to should I use Chinese in HLA?


I'll have to check, but in the dim recesses of my mind I seem to recall that
the HLA Flex code assumes a seven-bit character set. I may have set it to
eight bits, but I don't remember. In any case, 16-bits is out of the question.
HLA v1.41 and v1.42 do support Unicode strings, but only the UTF-7 character
set (i.e., ASCII) using the syntax: u"string of 16-bit chars". *Someday* I'll
add true support for the full Unicode set. However, this isn't simply a case of
tweaking the compiler to accept more input; all the compile-time string functions
have to be rewritten and the HLA Standard Library has to be redone.
So this is a fairly large undertaking (i.e., it's not going to happen any time soon).
Sorry,
Randy Hyde
Posted on 2003-03-18 21:54:47 by rhyde
??? !- ?????Coding-??!*hihihihihi*
I asked this question at the sme time, but in a nother forum.
You have to translate(hex) each sign in a dword.
roticv(a suer of this board) means that so:
.data
me dw 0CED2h,0

To make that a little bit easyear you could use a resource file.
For each text you have a ID. for example.

IDC_one "????" //I dont know whether the syntax is right !

I hope you see what i mean.

Good luck !

P.S. gxl117 please ignore my signatur !!!!!!!!!!!!!! *hihihihi*
Posted on 2003-04-14 09:34:23 by Forginforcer
?????S?????D???I HLA ?i?H????????r?I?A?b????a?I
Posted on 2003-05-04 16:06:13 by swang