🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Change String code page

#16853
From: MCh
Date: Tue, 22 Apr 2003 11:56
13 lines
1349 bytes
I use CppBuilder ver 5 Pro , WinXP Greek.
How to use different codepages for a string?
for example
char* tmp = {0xF3,0xDC,0xDD};
In Win XP Greek gives a string with greek characters(1253 codepage).But I
want not to display those greek characters but characters from West Windows
code page(1252). How to transform in another codepage?
The default is CP_ACP but maybe I have to use CP_WINANSI to use chars from
other languages.But How?

AnsiToNative ?

Thanks in advance for any help
Technical Details
Message-ID: <3ea52de4@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,f9550c2b6c81acc,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-04-22 05:01:18 PST
From: "MCh" <min_char@yahoo.gr>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Change String code page
Date: Tue, 22 Apr 2003 14:56:20 +0300
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 213.142.133.12
Message-ID: <3ea52de4@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1051012580 213.142.133.12 (22 Apr 2003 04:56:20 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail