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...