Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #4207

Re: ElementTree XML parsing problem

Date 2011-04-28 08:24 +0200
From Ervin Hegedüs <airween@gmail.com>
Subject Re: ElementTree XML parsing problem
References <ip9n72$ol6$1@dont-email.me> <20110427193335.GA2675@arxnet.hu> <ipavk8$l8r$1@dough.gmane.org>
Newsgroups comp.lang.python
Message-ID <mailman.928.1303971658.9059.python-list@python.org> (permalink)

Show all headers | View raw


hello,

On Thu, Apr 28, 2011 at 07:57:28AM +0200, Stefan Behnel wrote:
> >So, I started change the codepage mark of xml:
> >
> ><?xml version="1.0" encoding="UTF-8" ?>  - same result
> ><?xml version="1.0" encoding="ISO-8859-2" ?>  - same result
> ><?xml version="1.0" encoding="ISO-8859-1" ?>  - same result
> 
> You probably changed this in an editor that supports XML and thus
> saves the file in the declared encoding.

no. I've saved the XML as UTF8, and didn't change the _file_
encoding - just modified the XML header, nothing else...

(I'm using Geany - it doesn't realize what user wrote in file,
just can save file as another encodign, when user choose one)


> Switching between the three
> by simply changing the first line (the XML declaration) and not
> adapting the encoding of the document itself would otherwise not
> yield the same result for the document given above.

yes, that's what I wrote exactly.


a. 

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar


Thread

ElementTree XML parsing problem Mike <Mike@invalid.invalid> - 2011-04-27 11:26 -0700
  Re: ElementTree XML parsing problem Benjamin Kaplan <benjamin.kaplan@case.edu> - 2011-04-27 14:41 -0400
  Re: ElementTree XML parsing problem Neil Cerutti <neilc@norwich.edu> - 2011-04-27 19:24 +0000
    Re: ElementTree XML parsing problem Mike <Mike@invalid.invalid> - 2011-04-27 13:43 -0700
  Re: ElementTree XML parsing problem Philip Semanchuk <philip@semanchuk.com> - 2011-04-27 15:32 -0400
  Re: ElementTree XML parsing problem Hegedüs Ervin <airween@gmail.com> - 2011-04-27 21:33 +0200
    Re: ElementTree XML parsing problem Mike <Mike@invalid.invalid> - 2011-04-27 13:32 -0700
  Re: ElementTree XML parsing problem Stefan Behnel <stefan_ml@behnel.de> - 2011-04-28 07:57 +0200
  Re: ElementTree XML parsing problem Ervin Hegedüs <airween@gmail.com> - 2011-04-28 08:24 +0200

csiph-web