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
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"
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
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