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

Page encoding mangled (windows-1251) #13

Open
futpib opened this issue Sep 19, 2015 · 2 comments
Open

Page encoding mangled (windows-1251) #13

futpib opened this issue Sep 19, 2015 · 2 comments

Comments

@futpib
Copy link

futpib commented Sep 19, 2015

Can be reproduced by running:
foxy http://rutracker.org/
or with any other windows-1251 web site.

What it looks like (at http://localhost:randomport/):
broken

What it normally looks like (at http://rutracker.org/):
ok

Originally found in BrowserSync/browser-sync (also reproducible there)

@futpib
Copy link
Author

futpib commented Sep 20, 2015

After fooling around with it a bit I found the following workaround:

require('foxy')('http://rutracker.org/', {
    proxyRes: [ function (res) {
        res.push(' ');
    } ]
}).listen(8000);

@andreldm
Copy link

andreldm commented Oct 7, 2015

I have just tested this website with my ugly hack from shakyShane/resp-modifier#8 and it was rendered correctly if the encode is set to 'windows-1251' 👌

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

2 participants