Solving garbled puzzles
PHP Code
/*** give a piece of garbled, how to find out the original text. * The question is, Unicode should always be visible, regardless of character. can be converted to Unicode encoding to achieve the effect. */$str = ' manufacturering 12 echnical? 16 echnical? 20 echnical? 24 echnical? 36 echnical? 48 echnical? 60, 72 ", 84" , "Sphere", "Various styles",//solve ....
------Solution--------------------
Here's a paste, all changed.
You need to give the original data, and, if necessary, compile the code with Base64_encode.
------Solution--------------------
The mb_convert_encoding function can not indicate that the original character set only specifies the target character set to complete the conversion, and it is automatically detected (but not necessarily reliable)
------Solution--------------------
all use Utf-8 bar. Even file encodings are used.
------Solution--------------------
Amount: This I do not know, such as the expert answer ...
After all, the general conversion is to know the original character set, if really do not know .... Can only try each other?
------Solution--------------------
This binary data represents the actual text of the character set, which is currently indeterminate.
Everything is possible, to run off to say is BIG5 also not necessarily.
Although Unicode, UTF8 and other character sets can be compatible with text in any language, it is still necessary to know what the original character set is in order to convert this data into a character set such as UTF8.
------Solution--------------------
discuss
Reference:
Here's a paste, all changed.
You need to give the original data, and, if necessary, compile the code with Base64_encode.
No matter how it changes, the binary data of these characters should not change. That is, they should correspond to a character encoding to display correctly. But I don't know how to change the code.
------Solution--------------------
But you can guess, maybe.
Echnical
/*
for ($i =0x80; $i <0xfe; $i + +)
for ($j =0x60; $j <0xfe; $j + +)
echo iconv (' GBK ', ' Utf-8 ', Chr ($i). Chr ($j)). ", $i $j";
*/
foreach (Array (170,172,173,174,175,176,177,228,228,235,249) as $n)
Echo chr (161). Chr ($n);
/*
—‖...‘’“”′′‰※
*/
Depending on the context, the probability of being "the most