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

Catalan language [ used in ... /example/classify.php ] fails #9

Closed
redaktor opened this issue Jul 20, 2013 · 1 comment
Closed

Catalan language [ used in ... /example/classify.php ] fails #9

redaktor opened this issue Jul 20, 2013 · 1 comment

Comments

@redaktor
Copy link
Contributor

Hey there,

the example does not work for me because of the catalan characters à and è.

Another user described exactly my problem here:
http://stackoverflow.com/questions/16079407/catalan-characters-a-and-e-dont-work-with-php-imagestringup-how-to-decode-the

@redaktor
Copy link
Contributor Author

OK - FIGURED IT OUT !!! 👍

If someone has the mbstring lib enabled, the script fails for some languages.
I placed

mb_internal_encoding('UTF-8');

in ... lib/LanguageDetector/NGramParser.php

and now everything works.
Contribution follows ...

Visca el Barça i visca Catalunya ;)

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

0 participants