Created
October 31, 2017 11:47
-
-
Save binarymaster/83ff951028152615843b22d34093a612 to your computer and use it in GitHub Desktop.
Decode JOHAB-encoded strings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// read str from IMS/SOP in Win-1252 encoding | |
$str = '£¡“¡¯¡Ÿ¡»a Mº—µA¬á -MBC'; | |
// decode JOHAB | |
$str = iconv('UTF-8', 'CP1252', $str); // if the site page is initially in UTF-8 | |
$str = iconv('JOHAB', 'UTF-8', $str); | |
echo $str; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment