🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #5980

Re: python en xml

#5980
From: Nicolas Barbier
Date: Fri, 14 Feb 2003 17:38
21 lines
1648 bytes
Benoit Liessens wrote:

>> <?xml version="1.0" encoding="BLABLA"?>
> 
> Dat encoding gedeelte heb ik inderdaad niet. Hoe bekom ik dat?

Gewoon erbij zetten.

http://www.w3.org/TR/REC-xml#charencoding

Je wil waarschijnlijk "ISO-8859-1" of "ISO-8859-15", of iets dergelijks.

> En waarom wordt '&' dan wel naar '&amp;' vertaalt ook al staat er geen
> enconding bij?

Het "&" teken heeft al een speciale betekenis in XML, evenals "<" en 
dergelijke, daarom wordt het dus ge-escaped, ongeacht welke characterset je 
gebruikt.

-- 
Nicolas Barbier
Technical Details
Message-ID: <3e4d29b1$0$389$afc38c87@sisyphus.news.be.easynet.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!easynet-quince!easynet.net!feed1.news.be.easynet.net!sisyphus.news.be.easynet.net!not-for-mail
References: <b25tse$1bd$1@news.worldonline.be> <3e4690f6$0$387$afc38c87@sisyphus.news.be.easynet.net> <b26554$6rm$1@news.worldonline.be>

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit
X-Google-Thread: fcea4,fcaecbcf5e5bd1da
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2003-02-14 09:39:59 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!easynet-quince!easynet.net!feed1.news.be.easynet.net!sisyphus.news.be.easynet.net!not-for-mail
Message-ID: <3e4d29b1$0$389$afc38c87@sisyphus.news.be.easynet.net>
From: Nicolas Barbier <anti@spam.invalid>
Subject: Re: python en xml
Newsgroups: be.comp.programming
Date: Fri, 14 Feb 2003 18:38:19 +0100
References: <b25tse$1bd$1@news.worldonline.be> <3e4690f6$0$387$afc38c87@sisyphus.news.be.easynet.net> <b26554$6rm$1@news.worldonline.be>
User-Agent: KNode/0.6.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
Lines: 21
Organization: [ posted via Easynet Belgium ]
NNTP-Posting-Date: 14 Feb 2003 17:38:57 GMT
NNTP-Posting-Host: 213.193.183.53
X-Trace: 1045244337  389 [::ffff:213.193.183.53]:32788
X-Complaints-To: abuse@be.easynet.net