1. Go to this page and download the library: Download diepxuan/php-charset 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/ */
diepxuan / php-charset example snippets
// $objVN = new vn_charset_conversion();
// echo $objVN -> convert('Tôi tên là Ngô Chí Dũng. Người đã tạo ra cái phần mềm này.');
// Output: Toi ten la Ngo Chi Dung. Nguoi da tao ra cai phan mem nay.
//echo $objVN -> convert('Tôi tên là Ngô Chí Dũng. Người đã tạo ra cái phần mềm này.','unicode','virq');
//Output: To^i te^n la\` Ngo^ Chi' Du~ng. Ngu+o+\`i d-a~ ta.o ra ca'i pha^\`n me^\`m na\`y.
vn_convert_encoding('Tôi tên là Ngô Chí Dũng. Người đã tạo ra cái phần mềm này.')
Output: Toi ten la Ngo Chi Dung. Nguoi da tao ra cai phan mem nay.
vn_convert_encoding('Tôi tên là Ngô Chí Dũng. Người đã tạo ra cái phần mềm này.','unicode','virq')
Output: To^i te^n la\` Ngo^ Chi' Du~ng. Ngu+o+\`i d-a~ ta.o ra ca'i pha^\`n me^\`m na\`y.