Article View: borland.public.cppbuilder.nativeapi
Article #5493How to get Unicode text in a rich text control as 8 bit text.
From: Gary Setter
Date: Wed, 10 Aug 2005 01:27
Date: Wed, 10 Aug 2005 01:27
10 lines
1495 bytes
1495 bytes
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? Thanks, Gary
Technical Details
Message-ID:
<42f9580f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ae6457c103542367,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Gary Setter" <setterg@worldnet.att.net> Newsgroups: borland.public.cppbuilder.nativeapi Subject: How to get Unicode text in a rich text control as 8 bit text. Date: Tue, 9 Aug 2005 20:27:00 -0500 Lines: 11 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 12.74.20.163 Message-ID: <42f9580f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1123637263 12.74.20.163 (9 Aug 2005 18:27:43 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail