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 ?, You can use the unpack function to convert binary content into a value that can be recognized by php, but you 'd better use PHP to 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...
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.