Let's say I have a text file like this.
u0053
u0075
u006E
Is there a way I can convert that to this?
S
u
n
Currently, I'm using ioutil.ReadFile("data.txt")
, but when I print the data, I get the unicode code points instead of the string literals. I realize this is the correct behavior for ReadFile
, it's just not want I want.
I'm aiming for a substitution of the code points with their literal characters.
See Question&Answers more detail:os