-
Notifications
You must be signed in to change notification settings - Fork 368
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
Not all words are converted #78
Comments
Here's an explanation of that special character: U+FFFD � REPLACEMENT CHARACTER used to replace an unknown, unrecognized or unrepresentable character So if your data source has already replaced the original character with that dummy character, there may be no way to get it back. |
Although those two lines may appear the same in your text editor, the underlying bytes may not be the same. The latter character could be the literal U+FFFD question mark, while the first one could be some other thing that your editor doesn't recognize and thus replaces it visually with the question mark to indicate that fact. |
I have 2 files :
File has one row with : magn�sienne
Second file has one row with magn�sienne
The results for one document is :
magnésienne
For other :
magn?sienne
Implimentation :
$return[] = $this->utf8Encoding($row);
private function utf8Encoding($datas)
{
foreach ($datas as $key => $data) {
$datas[$key] = Encoding::fixUTF8($data);
}
return $datas;
}
Have you an idea ? Thx in advance
The text was updated successfully, but these errors were encountered: