Decode ShiftJIS to Unicode

If you get a decode error when you fetch a ShiftJIS string and put () it

decode.py


def DecString(self,target):
    DecBuf = str(target)
    RetStr = DecBuf.decode("ShiftJIS")
    return RetStr

Recommended Posts

Decode ShiftJIS to Unicode
[Python] Convert Shift_JIS to UTF-8
Python2 str / unicode and encode / decode
Experimented with unicode, decode and encode
[Python] What to check when you get a Unicode Decode Error in Django