🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

UTF-8 conversion is it safe to asume ?

#1278
From: Asger Jørgensen
Date: Sat, 29 Sep 2007 12:46
16 lines
1347 bytes
Hi there

I use MultiByteToWideChar on my UTF-8 datastreams to 
get the size of the buffer needed for converting, 
that works just fine.

Sometimes the function returns the exact same size 
as the original stream.
Can I, in theses cases, assume that there is no 
characters in the stream that needs to be converted ??
And the go on processing the contents without 
converting it ?

Thanks in advance
Kind regards
Asger
Technical Details
Message-ID: <MPG.216867aaf4046a9c98982c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,98822b795d44732,start
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Asger Jørgensen <junk@Asger-P.dk>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: UTF-8 conversion is it safe to asume ?
Date: Sat, 29 Sep 2007 14:46:59 +0200
Message-ID: <MPG.216867aaf4046a9c98982c@newsgroups.borland.com>
Organization: Asger-P
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
User-Agent: MicroPlanet-Gravity/2.70.2067
NNTP-Posting-Host: 83.73.213.92
X-Trace: newsgroups.borland.com 1191070013 83.73.213.92 (29 Sep 2007 05:46:53 -0700)
Lines: 16
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail