I have a binary like this:
1101100110000110110110011000001011011000101001111101100010101000
and I want to convert it to utf-8. how can I do this in python?
Cleaner version:
Inverse (from @Robᵩ's comment):
|
|||||||||||||||||||||
|
Well, the idea I have is:
1. Split the string into octets
2. Convert the octet to hexadecimal using This code works for me, but I'm not sure what does it print because I don't have utf-8 in my console (Windows :P ).
Hope this helps! |
|||||||||||||||||||||
|
Or, the inverse:
|
|||||
|
Use:
|
|||||||||
|
hd
orod
or a similar hex-dump utility and copy-paste the first few lines? – Robᵩ Oct 8 '13 at 18:57