Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoding Problem #36

Open
yfxie opened this issue Aug 23, 2014 · 0 comments
Open

Encoding Problem #36

yfxie opened this issue Aug 23, 2014 · 0 comments

Comments

@yfxie
Copy link

yfxie commented Aug 23, 2014

when request url is http://info.ntust.edu.tw/faith/edua/app/qry_linkoutline.aspx?semester=1031&courseno=ET5117701

it will get error
encoding error : input conversion failed due to input error, bytes 0xA8 0x8B 0xE8 0xB3, but other course page isn't. I guess the page used special character.
I have tried and I think this is Mechanize problem if I override get method to

doc = original_get *args
doc.encoding = 'utf-8'
doc

It will work fine, but in some case other normal page will get trouble....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant