🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #5505

Re: How to get Unicode text in a rich text control as 8 bit text.

#5505
From: Pete Fraser
Date: Wed, 10 Aug 2005 18:59
21 lines
1803 bytes
Tak a look at Robert Dunns Richedit control which does all that you want.
http://home.att.net/~robertdunn/Yacs.html
HTH Pete

"Gary Setter" <setterg@worldnet.att.net> wrote in message 
news:42fa2e00@newsgroups.borland.com...
>
> "Gary Setter" <setterg@worldnet.att.net> wrote in message
> news:42f9580f@newsgroups.borland.com...
>> Hi,
>> I want to get the Unicode text of a rich edit control as 8 bit 
>> characters.
> I
>> want the Unicode characters converted to 8 bit as if by 
>> WideCharToMultiByt
>> where the code page is as defined by the RTF control word \ansicpg .
>> Currently, when I get the text the non-ASCII characters are translated to
>> 0x3F ?
>> I tried using the GetWindowText() function and the EM_GETTEXTRANGE
> message.
>> Is there any way I can do this?
Technical Details
Message-ID: <42fa4eab$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!newsfeed.freenet.de!tsicnews.teliasonera.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <42f9580f@newsgroups.borland.com> <42fa2e00@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ae6457c103542367
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Pete Fraser" <pete.fraser@frasersoft.nospam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <42f9580f@newsgroups.borland.com> <42fa2e00@newsgroups.borland.com>
Subject: Re: How to get Unicode text in a rich text control as 8 bit text.
Date: Wed, 10 Aug 2005 19:59:58 +0100
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 80.5.150.204
Message-ID: <42fa4eab$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1123700395 80.5.150.204 (10 Aug 2005 11:59:55 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!newsfeed.freenet.de!tsicnews.teliasonera.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail