PHP code example of hellpers / dencoder
1. Go to this page and download the library: Download hellpers/dencoder 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/ */
hellpers / dencoder example snippets
use Hellpers\Dencoder;
// Преобразование в UTF-8
$string = mb_convert_encoding('Строка в кодировке cp1251', 'CP1251');
echo Dencoder::utf8($string) . PHP_EOL;
// Преобразование в CP1251
$string = mb_convert_encoding('Строка в кодировке utf-8', 'UTF-8');
echo Dencoder::cp1251($string) . PHP_EOL;