1. Go to this page and download the library: Download kit-jotform/php-ftfy library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kit-jotform / php-ftfy example snippets
use Ftfy\Ftfy;
echo Ftfy::fixText("(ง'⌣')ง");
// (ง'⌣')ง
use Ftfy\Ftfy;
// Fix common mojibake
Ftfy::fixText('âœ" No problems');
// ✔ No problems
// Fix multiple layers of mojibake
Ftfy::fixText('The Mona Lisa doesn’t have eyebrows.');
// "The Mona Lisa doesn't have eyebrows."
// Fix HTML entities outside of HTML
Ftfy::fixText('P&EACUTE;REZ');
// PÉREZ
// Correctly-decoded text is left unchanged
Ftfy::fixText('IL Y MARQUÉ…');
// IL Y MARQUÉ…