"Oleg Oltar" wrote
I am trying to decode a string I took from file:
file = open ("./Downloads/lamp-post.csv", 'r')
I assume you know what its supposed to represent?
What the columns etc are intended to be?
Otherwise it will be a challenge!
There is a section here that looks like the mon
Oleg Oltar wrote:
Hi,
I am trying to decode a string I took from file:
[...]
How do I convert this to something human readable?
In general, you can't unless you know the encoding. A file filled with
arbitrary bytes could be anything.
However, you can sometimes guess the encoding, either b
Oleg Oltar wrote:
> I am trying to decode a string I took from file:
>
> file = open ("./Downloads/lamp-post.csv", 'r')
> data = file.readlines()
> data[0]
>
>
'\xff\xfeK\x00e\x00y\x00w\x00o\x00r\x00d\x00\t\x00C\x00o\x00m\x00p\x00e\x00t\x00i\x00t\x00i\x00o\x00n\x00\t\x00G\x00l\x00o\x00b\x00a\x0
Hi,
I am trying to decode a string I took from file:
file = open ("./Downloads/lamp-post.csv", 'r')
data = file.readlines()
data[0]
'\xff\xfeK\x00e\x00y\x00w\x00o\x00r\x00d\x00\t\x00C\x00o\x00m\x00p\x00e\x00t\x00i\x00t\x00i\x00o\x00n\x00\t\x00G\x00l\x00o\x00b\x00a\x00l\x00
\x00M\x00o\x00n\x00t\x