Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- f = open('feria.lsr', 'rb')
- x = f.read()
- f.close()
- s = x.split(b'\0')
- f = open('feria.txt', 'wb')
- for l in s:
- try:
- decoded = l.decode('shift-jis')
- if len(decoded) < 1:
- continue
- f.write(decoded.encode('utf-8'))
- f.write(b'\r\n|\r\n')
- except:
- pass
- f.close()
Advertisement
Add Comment
Please, Sign In to add comment