Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix 'mb_convert_encoding(): Illegal character encoding specified' whe…
…n encoding is windows
- Loading branch information
e4d5130
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
windows-1258
can not be converted to UTF-8 (returning it as it is)When you try to convert eg.
windows-1258
toutf-8
this will fail with the following error message:mb_convert_encoding(): Illegal character encoding specified
e4d5130
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, what about try mb_convert_encoding on supported encodings and to other use iconv?
I have string in windows-1250, try to covert it to UTF-8, mb_ ends with error, but iconv do the job ....
e4d5130
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can try this as well. Let's check this out in #335.