🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

UNICODE: Can't get it to the screen

#757
From: Christian Sommerhuber
Date: Fri, 08 Mar 2002 07:40
39 lines
1767 bytes
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 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 "|".


Finally I copied the widechar to the clipboard and pasted it to MS Excel.
Here it showed as intended as a Chinese character.


CONCLUSION: does Borland C++ builder not support the output of UNICODE
characters or do I do something wrong or do I need to do something in
addition?


Soon help is very much appreciated!


Christian
Technical Details
Message-ID: <3c886b3f_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news-x2.support.nl!newsfeed.frii.com!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10297d,eee03ec3de08ad0a,start
X-Google-Attributes: gid10297d,public
X-Google-ArrivalTime: 2002-03-07 23:57:12 PST
From: "Christian Sommerhuber" <Christian.Sommerhuber@skf.com>
Newsgroups: borland.public.cppbuilder.internationalization
Subject: UNICODE: Can't get it to the screen
Date: Fri, 8 Mar 2002 08:40:32 +0100
Lines: 42
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: <3c886b3f_1@dnews>
X-Trace: dnews 1015573311 163.157.254.20 (7 Mar 2002 23:41:51 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news-x2.support.nl!newsfeed.frii.com!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews