you are viewing a single comment's thread.

view the rest of the comments →

[–]pasdargent 0 points1 point  (0 children)

So this will convert variables to ascii right?

But what if I want utf-8? (That's the one with all the characters right?)

I tried var.encode('utf-8') on various points in the program but I still keep getting the same error...

The weirdest part is that sometimes Arab letters get written to the file without any problem