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

MCData::stringWithDetectedCharset doesn't work properly with html encoded with windows-1251 #989

Closed
foxinushka opened this issue Nov 28, 2014 · 7 comments

Comments

@foxinushka
Copy link
Contributor

If you call the method with args:

hintCharset = windows-1251
isHTML = true

it tries to decode string with UTF-8 encoding.

The line: charset = charsetWithFilteredHTML(isHTML, hintCharset) sets charset to utf-8.

@dinhvh
Copy link
Member

dinhvh commented Nov 29, 2014

Could you make the content available as a downloadable file?

@foxinushka
Copy link
Contributor Author

Any news? Do you reproduce an issue with my file?

@dinhvh
Copy link
Member

dinhvh commented Dec 4, 2014

If you need faster track for analyze, please look for consulting via Astro HQ.

@dinhvh
Copy link
Member

dinhvh commented Dec 18, 2014

Is it the correct output for the file you attached?
https://gist.github.com/dinhviethoa/2645e07ddb1335a61227
That's what the current codebase of mailcore2 will output.

@dinhvh
Copy link
Member

dinhvh commented Dec 18, 2014

Fixed with c1607b6.

@dinhvh dinhvh closed this as completed Dec 18, 2014
@foxinushka
Copy link
Contributor Author

Yes, it is correct output for my file.

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