Solving garbled Puzzle Solution

Source: Internet
Author: User
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
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.