flat assembler
Message board for the users of flat assembler.

Index > Windows > Unicode Console

Author
Thread Post new topic Reply to topic
sekigun



Joined: 23 Dec 2004
Posts: 18
Location: Japan
sekigun 23 Dec 2004, 14:36
Hi! I'm just starting out with assembler as I've finally found one which provides what I want.
I was playing with unicode APIs. I was especially interested in UNICODE console output. After writing a few routines to handle the strings, I put my unicode 'Hello world' to run only to find that 'Lucida Console' font lacks installed charsets different from OEM codepage, thus just printing squares. The fun part is that I could still search for the string in the box or copy the console contents to a text file, and the length was correct, not double as you would expect from ANSI. Switching codepages just doesn't run, and although windows itself sort of lets you "change the console font"(no unicode fonts though) no known API for that purpose. I'm really astounded to see how hundreds of professional developers are unable to develop a unicode console. If I was them, at least, would have removed the W version of the console APIs...
I'm afraid this has no solution, but if someone can help me...
Thanks!
Post 23 Dec 2004, 14:36
View user's profile Send private message Reply with quote
scientica
Retired moderator


Joined: 16 Jun 2003
Posts: 689
Location: Linköping, Sweden
scientica 28 Dec 2004, 17:43
Konbanwa Sikigun Smile
well, if you want to use unicode fonts (to eg view utf-8 encoded Japanese) in windows you must either have a japanese version of windows or install a package for windows (unfortainly I forgot the name of it, but I think something like "Asian Language Pack" I'd guess) - it'll install unicode fonts (whith a much better coverage, naturally it contains all the kana (hiragana and katakana) and many kanji (not sure about the windows fonts but I think most used knaji are in the fonts)) - besides the japanese IME I can't honestly say that my (relativly limited) experience with the unicode support in windows isn't comparable with eg that in linux (even if I don't claim it to be "the best", well, at least not in here Razz)
Also, in windows (last time I checkeed), the unicode support is implemented in a at first glance minimal effort way is a 16-bit unicode char width (not sure if it's UTF-16 or UCs-2).

offtopic: btw, hope you'll enjoy japan (haven't been there my self, but I hope to visit it at some point in the future).
Post 28 Dec 2004, 17:43
View user's profile Send private message Visit poster's website Reply with quote
drocon



Joined: 14 Nov 2004
Posts: 8
drocon 28 Dec 2004, 18:45
if you switch your DEFAULT regional settings to japanese, you will be able to output kanji/kana characters. it's annoying though, since a lot of ASCII stuff are recognized and some erroneous character is displayed. just go to control panel --> regional settings --> set as default --> select japanese, but make sure you have the japanese IME installed first. that's all there is to it!

hope that helps.
Post 28 Dec 2004, 18:45
View user's profile Send private message Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 28 Dec 2004, 22:24
Afaik, NT added UNICODE support before the "new standards" arrived - and now it's a bit hard changing the APIs without breaking a lot of stuff.
Post 28 Dec 2004, 22:24
View user's profile Send private message Visit poster's website Reply with quote
sekigun



Joined: 23 Dec 2004
Posts: 18
Location: Japan
sekigun 25 Jan 2005, 13:34
Thank you all!
Of course I knew about the changing the regional settings thing, but the idea was a bilingual project which could display both Japanese and European Languages. Sad And of course, even if I forgot about European extended characters I don't want a program which requires the user to change the regional settings(ie to restart the computer).
I guess I'll have to learn windows programming in assembler Sad. I hate handling events(I love VB xDDD).

offtopic: I still have a month left to spend programming until I go there : Very Happy
Post 25 Jan 2005, 13:34
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-2023, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.