Re: HTMLParser can't read japanese

2010-04-13 Thread John Nagle
Yes. Try "cmd /u" to get a Unicode console. HTMLparser should already have converted from Shift-JIS to Unicode, so the "print" is outputting Unicode. John Nagle Stefan Behnel wrote: Dodo, 13.04.2010 13:40: Here's a small script to generate again the erro

Re: HTMLParser can't read japanese

2010-04-13 Thread Stefan Behnel
Dodo, 13.04.2010 13:40: Here's a small script to generate again the error running windows 7 with python 3.1 FILE : parseShift.py import urllib.request as url from html.parser import HTMLParser class myParser(HTMLParser): def handle_starttag(self, tag, attrs): print("Start of %s tag : %s"

Re: HTMLParser can't read japanese

2010-04-13 Thread Dodo
alright, it's just because of Windows cmd in IDLE it works fine any workaround? Dorian Le 13/04/2010 13:40, Dodo a écrit : Here's a small script to generate again the error running windows 7 with python 3.1 FILE : parseShift.py import urllib.request as url from html.parser import HTMLParser

HTMLParser can't read japanese

2010-04-13 Thread Dodo
Here's a small script to generate again the error running windows 7 with python 3.1 FILE : parseShift.py import urllib.request as url from html.parser import HTMLParser class myParser(HTMLParser): def handle_starttag(self, tag, attrs): print("Start of %s tag : %s" % (tag