This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sharmila
Recipients facundobatista, sharmila
Date 2007-10-18.04:41:15
SpamBayes Score 0.00054567837
Marked as misclassified No
Message-id <23205fa00710172141n709133cs12fa051c335978f5@mail.gmail.com>
In-reply-to <1192678591.15.0.210411295055.issue1290@psf.upfronthosting.co.za>
Content
Thanks for your quick response Facundo.

I'm working on Ubuntu 7.04, python 2.5.1
Python 2.5.1 (r251:54863, May 2 2007, 16:56:35)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2

This error occurs when the default encoding is 'ascii'.  When I change the
default encoding to 'utf-8' it works for me too.  Is, by any chance, your
default encoding 'utf-8'?

On 10/18/07, Facundo Batista <report@bugs.python.org> wrote:
>
>
> Facundo Batista added the comment:
>
> Downloaded the testdata.txt file, and yes, it's UTF-8:
>
> facundo@pomcat:~/devel$ file testdata.txt
> testdata.txt: UTF-8 Unicode text
>
> But I opened it perfectly!
>
> Python 2.5.1 (r251:54863, May  2 2007, 16:56:35)
> [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import xml.dom.minidom as dom
> >>> data = open('testdata.txt','r').read()
> >>> mydom = dom.parseString(data)
> >>> mydom
> <xml.dom.minidom.Document instance at 0xb7c03b0c>
> >>>
>
> In which platform you're working?
>
> And yes, you have absolute permission to fix it, patchs are always
> welcomed!
>
> ----------
> nosy: +facundobatista
> resolution:  -> works for me
> status: open -> closed
>
> __________________________________
> Tracker <report@bugs.python.org>
> <http://bugs.python.org/issue1290>
> __________________________________
>
Files
File name Uploaded
unnamed sharmila, 2007-10-18.04:41:13
History
Date User Action Args
2007-10-18 04:41:16sharmilasetspambayes_score: 0.000545678 -> 0.00054567837
recipients: + sharmila, facundobatista
2007-10-18 04:41:15sharmilalinkissue1290 messages
2007-10-18 04:41:15sharmilacreate