🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internationalization
Article #766

Re: UNICODE: Can't get it to the screen

#766
From: Christian Sommerhuber
Date: Fri, 22 Mar 2002 12:02
44 lines
2402 bytes
Hi Francisco,
your answer seems promising. However as I can see in Excel, it's still
Arial. So I used as well Arial. I switched between DEFAULT_CHARSET,
ANSI_CHARSET, SHIFTJIS_CHARSET, THAI_CHARSET and CHINESEBIG5_CHARSET. When I
paste the char here: "?" (at least when sending from my PC it shows up as
Chinese character, although I didn't change the font).
By the way I found as well an "Arial Unicode MS" and "Multinational Ext"
font on my PC. They do as well the same as Arial.
So what font do you think I have to use ?

Christian


"FL" <frleong@hotmail.com> wrote in message
news:3C999693.B068D05@hotmail.com...
> Christian Sommerhuber wrote:
> >
> > I've read the thread "Unicode? Help!" and followed the instructions.
However
> > when trying to output a widechar with
> >
> > #define UNICODE
> >
> > ....
> >
> >     wc[0]=21016;
> >     wc[1]=0;
> >     Form1->Canvas->TextOutW(30, 130, wc);
> I don't think you can use TextOutW with VCL...
>
> >
> > I always just get a question mark plotted. The next I tried was
> >
> >     HDC hdc = GetDC(0);
> >     TextOutW(hdc, 30, 230, wc, 1);
> >     RECT r={ 30, 300, 600, 400 };
> >     ExtTextOutW (hdc, 30, 330, ETO_OPAQUE | ETO_GLYPH_INDEX , &r, wc, 1,
0);
> >
> > Both resulted in a bold "|".
> You're using the wrong font. Select the right font and you'll get the
> results you want.
>
> Francisco
Technical Details
Message-ID: <3c9b1d9d$1_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news.tele.dk!small.news.tele.dk!195.64.68.27!newsgate.cistron.nl!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3c886b3f_1@dnews> <3C999693.B068D05@hotmail.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10297d,eee03ec3de08ad0a
X-Google-Attributes: gid10297d,public
X-Google-ArrivalTime: 2002-03-22 04:09:39 PST
From: "Christian Sommerhuber" <Christian.Sommerhuber@skf.com>
Newsgroups: borland.public.cppbuilder.internationalization
References: <3c886b3f_1@dnews> <3C999693.B068D05@hotmail.com>
Subject: Re: UNICODE: Can't get it to the screen
Date: Fri, 22 Mar 2002 13:02:29 +0100
Lines: 46
Organization: SKF QTC
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 163.157.254.20
Message-ID: <3c9b1d9d$1_2@dnews>
X-Trace: dnews 1016798621 163.157.254.20 (22 Mar 2002 04:03:41 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news.tele.dk!small.news.tele.dk!195.64.68.27!newsgate.cistron.nl!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews