File manager - Edit - /home/webapp69.cm.in.th/u69319090033/Shop/tools_backup/test_decode2.php
Back
<?php // Let's test treating the mojibake as UTF-8, converting back to TIS-620 to get raw bytes, // and then treating those raw bytes as UTF-8. $corrupted = "เธชเธกเธŠเธฒเธข เธชเธฒเธขเธŠเน‰เธญเธ›"; $raw_bytes = mb_convert_encoding($corrupted, 'TIS-620', 'UTF-8'); echo "TIS-620 -> UTF-8 Bytes: " . $raw_bytes . "\n"; $raw_bytes2 = mb_convert_encoding($corrupted, 'Windows-1252', 'UTF-8'); echo "Win-1252 -> UTF-8 Bytes: " . $raw_bytes2 . "\n";
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.26 |
proxy
|
phpinfo
|
Settings