Bug in UTF8Decode? (Delphi2007R2Update3Pro)

Giganews Newsgroups
Subject:Bug in UTF8Decode? (Delphi2007R2Update3Pro)
Posted by: dk_sz (dk_…@hotmail.com)
Date:Mon, 24 Sep 2007

Hi,

I get a stream from some webpage, known UTF8 !
I SetLength an UTF8String to the length that match
bytes and fill the bytes into it...
(no BOM in stream)

I then call UTF8Decode to get it in wide...
Instead I get an empty string '' back...

jclUnicode.UTF8ToWideString works...

A bug in Delphi? I think so. At least behavior is not documented...

best regards
Thomas Schulz

Replies