Tuesday, 15 September 2015

Text with binary code -


The binary code for Hello is 0100100001000101010011000100110001001111 **, but I can not find a way to convert binary code to example A .

How can I change it and make a word like the world because I do not see the empty space in the binary code for Hello? , what is w , what is o , what is r .. ..

Should I add something between different codes (for example: if W 1010101, O - 000101, R - 1010111, L - 100001, D - 111111 Is it 1010101 000101 1010111 100001 111111 WORLD?)

The binary representation of the string is completely dependent on it. If you want to use simple case (a byte per character), then whatever you have to do, you need to see the hex code for that character, for example '0x41' from this point It is trivial to convert it into a binary sequence, it is important to keep in mind that things like playing with actual binary presentation.

For encoding such as UTF-8, Unicode, or Multi-byte encoding, the process is reduced directly and you will be better off using the Library function to get binary representation.

No comments:

Post a Comment