🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: UTF-8 conversion is it safe to asume ?

#1283
From: Asger Jørgensen
Date: Mon, 01 Oct 2007 15:34
20 lines
1593 bytes
Hi Eelke

In article <4700e2ab$1@newsgroups.borland.com>, 
e.klein@remove.mplussoftware.nl says...
> Asger Jørgensen schreef:
> > Hi there
> > 
> > I use MultiByteToWideChar on my UTF-8 datastreams to 
> > get the size of the buffer needed for converting, 
> > that works just fine.
> 
> No, afaik there is no garantee that a 2 byte mbchar is the same as the 
> widechar second the mbstring could also contain 3 byte and 1 byte 
> mbchars which would definitly not be the same.

You are absolutely right.
Thanks!

Kind regards
Asger
Technical Details
Message-ID: <MPG.216b320f7c5287f598982f@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <MPG.216867aaf4046a9c98982c@newsgroups.borland.com> <4700e2ab$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,98822b795d44732
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,UTF8
From: Asger Jørgensen <junk@Asger-P.dk>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: UTF-8 conversion is it safe to asume ?
Date: Mon, 1 Oct 2007 17:34:57 +0200
Message-ID: <MPG.216b320f7c5287f598982f@newsgroups.borland.com>
References: <MPG.216867aaf4046a9c98982c@newsgroups.borland.com> <4700e2ab$1@newsgroups.borland.com>
Organization: Asger-P
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
User-Agent: MicroPlanet-Gravity/2.70.2067
NNTP-Posting-Host: 83.73.213.92
X-Trace: newsgroups.borland.com 1191252895 83.73.213.92 (1 Oct 2007 08:34:55 -0700)
Lines: 20
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail