🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.xml
Article #113

Re: Enforce encoding of accented characters ?

#113
From: Mikael Eriksson
Date: Wed, 23 Jan 2008 06:38
18 lines
1402 bytes
Erik De Laet skrev:
> I do set encoding to UTF-8 using the Encoding property, but that does not
> translate the characters.

Hi.

If you use UTF-8 the characters above #127 up to #2047 should be double 
byte encoded in the xml-file.

XMLDocument1.Encoding := 'UTF-8';
XMLDocument1.AddChild('RootNode').Text := '�';

This code will give you a xml-document where � is encoded with #195 and 
#150.

regards

/Micke
Technical Details
Message-ID: <4796e0cc@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.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: <47962c6d@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f5d9b,792e8610306d095e
X-Google-Attributes: gidf5d9b,public,usenet
X-Google-Language: ENGLISH,ASCII
Date: Wed, 23 Jan 2008 07:38:10 +0100
From: Mikael Eriksson <micke314@gmail.com>
User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)
MIME-Version: 1.0
Newsgroups: borland.public.delphi.xml
Subject: Re: Enforce encoding of accented characters ?
References: <47962c6d@newsgroups.borland.com>
In-Reply-To: <47962c6d@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 213.50.33.2
Message-ID: <4796e0cc@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1201070284 213.50.33.2 (22 Jan 2008 22:38:04 -0700)
Lines: 18
Path: arc1-ca.pugleaf.net!g2news1.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