🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: wstring to string in Danish?

#156
From: Darko Miletic
Date: Wed, 11 Jan 2006 01:48
17 lines
1809 bytes
Niels wrote:
> Hello,
> Why does this function not translate the Danish characters "������" correctly from wide character to character format? Well, it does but only because I put the switch statement in there:
> Without the switch statement the call of StrNarrow(L"Bl�b�rgr�d") yield Bl@b@rgr@d. Incorrect!
> 
> With the switch statement the call of StrNarrow(L"Bl�b�rgr�d") yield "Bl�b�rgr�d". Correct!
> 
> I am using Builder 6.0.

C++ Builder ships with two implementations of STL. One is "new" STLport
and another is rouge wave STL.

By default bcb 6 uses STLport. Just to be sure try to switch to older RW
STL and see what happens. You can do that by adding _USE_OLD_RW_STL
define to your project settings.

Darko
Technical Details
Message-ID: <43c46277@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!newshub.sdsu.edu!peer01.west.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <43c2742d$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10297d,fca0b7b205899cc1
X-Google-Attributes: gid10297d,public
X-Google-Language: ENGLISH,ASCII
Date: Tue, 10 Jan 2006 22:48:32 -0300
From: Darko Miletic <kiklop@fibertel.com.ar>
User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internationalization
Subject: Re: wstring to string in Danish?
References: <43c2742d$1@newsgroups.borland.com>
In-Reply-To: <43c2742d$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Antivirus: avast! (VPS 0602-1, 09/01/2006), Outbound message
X-Antivirus-Status: Not-Tested
NNTP-Posting-Host: 200.126.183.150
Message-ID: <43c46277@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1136943735 200.126.183.150 (10 Jan 2006 17:42:15 -0700)
Lines: 17
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!newshub.sdsu.edu!peer01.west.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail