|Last Updated|| ||Ratings|| ||Unique User Downloads|| ||Download Rankings|
|2021-02-05 (2 months ago) ||Not enough user ratings||Total: 113 This week: 1||All time: 9,327 This week: 277|
This class can convert latin characters that were double-encoded.
It can take as parameter a string that has latin characters with accents and cedillas but were encoded twice as utf8.
The class replaces the double encoded latin characters with the correct characters in UTF-8.
It can also check if a string has a correct representation of text string in UTF-8.
|Sometimes applications store text that was given by the application users using UTF-8 encoded.
However, due to programming mistakes, the application may encode the text again as UTF-8, when it was already encoded as UTF-8. This mistake is called double-encoding.
To fix the text that was double encoded, it it is necessary to revert the last step of encoding of the characters.
This class provides a solution, that not only can undo the double-encoding mistake, but it is also able to detect the encoding of a given text, so you can evaluate what encoding it is using.
This PHP class can decode UTF8 encoded strings for French special characters.
It extends the Utf8DecodeFrenchAccentsEncoded PHP class to provide functions that can detects character encoding on a given string and can decode utf8 encoded Accents characters of French language.
The class functions take the string encoded as parameter to show the string decode in utf8. For is_utf8() function, it return a boolean.
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.