PHP Classes

PHP Convert UTF8 to Latin1 UTF8 Encoded package blog

Recommend this page to a friend!

Latest PHP Convert UTF8 to Latin1 UTF8 Encoded package blog posts

  All package blogs All package blogs   PHP Convert UTF8 to Latin1 UTF8 Encoded PHP Convert UTF8 to Latin1 UTF8 Encoded   Blog PHP Convert UTF8 to Latin1 UTF8 Encoded package blog   Post article Post article  

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:

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.


Blog More ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)


  All package blogs All package blogs   PHP Convert UTF8 to Latin1 UTF8 Encoded PHP Convert UTF8 to Latin1 UTF8 Encoded   Blog PHP Convert UTF8 to Latin1 UTF8 Encoded package blog   Post article Post article