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

mb_convert_encoding(): Illegal character encoding specified #41

Closed
sammyaxe opened this issue Jul 17, 2018 · 1 comment
Closed

mb_convert_encoding(): Illegal character encoding specified #41

sammyaxe opened this issue Jul 17, 2018 · 1 comment

Comments

@sammyaxe
Copy link

Everything works fine until I try to read data from this website: https://uzdarbis.lt/
Looking into the source it seems encoding is windows-1257

Any help would be appreaciated

@duzun
Copy link
Owner

duzun commented Jul 17, 2018

It turns out mb_convert_encoding() doesn't support 'windows-1257'.
I've updated hQuery to use iconv() when the charset is not present in the mb_list_encodings().
This should solve your issue.

See v2.1.0 or #f2f8ffce.

But iconv() uses underlying OS's libraries. In some cases, it is a good idea to install libiconv in the OS.

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

No branches or pull requests

2 participants