About 3,010,000 results
Open links in new tab
  1. python - How to decode a text in python3? - Stack Overflow

    Feb 4, 2021 · How do you read the string from a file? You use probably a wrong open command. Which parameter do you use? Usually open read a text file, and you should have a unicode …

  2. Unicode (UTF-8) reading and writing to files in Python

    This particular reading allows one to take UTF-8 representations from within Python, copy them into an ASCII file, and have them be read in to Unicode. Under the "string-escape" decode, the …

  3. Python 3 - Encode/Decode vs Bytes/Str - Stack Overflow

    I repeat: Encode () returns an 8-bit string both under Python 2 and Python 3. It's called "str" in Python 2 and "bytes" in Python 3, but both are 8-bit strings.

  4. How do you decode Base64 data in Python? - Stack Overflow

    Jul 19, 2021 · I have the following piece of Base64 encoded data, and I want to use the Python Base64 module to extract information from it. It seems that module does not work. How can I …

  5. How to decode a unicode string Python - Stack Overflow

    Jan 29, 2016 · That string already is decoded (it's a Unicode object). You need to encode it if you want to store it in a file (or send it to a dumb terminal etc.). Generally, when working with …

  6. JSONDecodeError: Expecting value: line 1 column 1 (char 0)

    I am getting error Expecting value: line 1 column 1 (char 0) when trying to decode JSON. The URL I use for the API call works fine in the browser, but gives this ...

  7. URL decode UTF-8 in Python - Stack Overflow

    May 15, 2013 · URL decode UTF-8 in Python Asked 12 years, 5 months ago Modified 11 months ago Viewed 481k times

  8. python - How to un-escape a backslash-escaped string? - Stack …

    Suppose I have a string which is a backslash-escaped version of another string. Is there an easy way, in Python, to unescape the string? I could, for example, do: >>> escaped_str = '"He...

  9. How to convert a string to utf-8 in Python - Stack Overflow

    May 3, 2018 · I have a browser which sends utf-8 characters to my Python server, but when I retrieve it from the query string, the encoding that Python returns is ASCII. How can I convert …

  10. python - How to fix: "UnicodeDecodeError: 'ascii' codec can't …

    Python 3 Python 3 is no more Unicode capable than Python 2.x is, however it is slightly less confused on the topic. E.g the regular str is now a Unicode string and the old str is now bytes. …