How does PHP display binary data?

Source: Internet
Author: User
Tags unpack
How to display binary data in php I want to study the Dictionary of the starship software. according to the instructions on the Internet, the data in the IDX file is the location of the word and the corresponding interpretation in the diz file. But they are all binary. all the data displayed on the webpage is garbled or spaces. how can I display the data as numbers or meaningful visible characters? ------ Solution ------------------ using the unpack function, you can convert binary content into php PHP. how can I display binary data?
I want to study the Dictionary of the starship translation software. according to the instructions on the Internet, the data in the IDX file is the location of words and corresponding explanations in the diz file. But they are all binary. all the data displayed on the webpage is garbled or spaces. how can I display the data as numbers or meaningful visible characters?

------ Solution --------------------
The unpack function can be used to convert binary content into php identifiable values.
But you 'd better open it with an editor with the hexadecimal editing function first, mainly to figure out its data structure.
Then write the program.
------ Solution --------------------
The Starship translation tool in linux is really tough. However, it seems that there is no good translation tool in linux. it is better to open a browser...

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.