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.
Created on 2008年08月31日 19:43 by jaylogan, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| read_song_xml.py | jaylogan, 2008年08月31日 19:43 | Python program to load an XML file argument | ||
| Messages (2) | |||
|---|---|---|---|
| msg72211 - (view) | Author: Joshua Logan (jaylogan) | Date: 2008年08月31日 19:43 | |
Python 3.0b2 will not parse the XML file located at http://rubyquiz.com/SongLibrary.xml.gz It complains of a UnicodeEncodeError 'charmap' codec can't encode character '\xc8' in position 45: ch aracter maps to <undefined> I included a sample program, just in case I was doing something wrong while coding. Python 3.0b2 (r30b2:65106, Jul 18 2008, 18:44:17) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. |
|||
| msg82519 - (view) | Author: Ezio Melotti (ezio.melotti) * (Python committer) | Date: 2009年02月20日 07:40 | |
The encoding used by the windows terminal (usually cp850) is not able to encode all the characters, so when you print the text that you extract from the xml file the terminal is not able able to display some characters. If you remove the print() it works fine. You can also try to write the results on a file using utf-8. This issue can be closed. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:38 | admin | set | github: 47992 |
| 2009年02月21日 03:15:31 | benjamin.peterson | set | status: open -> closed resolution: not a bug |
| 2009年02月20日 07:40:17 | ezio.melotti | set | nosy:
+ ezio.melotti messages: + msg82519 |
| 2008年08月31日 19:43:38 | jaylogan | create | |