1. How to Fix PHP UTF8 Encoding that was Applied to Text Strings More Than Once By Mistake
Updated on: 2021-03-12
Posted on: 2021-03-12
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.
More ...
Post a comment
See comments (0) Trackbacks (0)
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.


