[RELEASE] Texture Cache Maintenance utility
Now it's throwing this error:
Code:
Traceback (most recent call last):0, Multi thread 3951
  File "texturecache.py", line 5872, in <module>
    main(sys.argv[1:])
  File "texturecache.py", line 5750, in main
    extraFields=_extraFields, query=_query)
  File "texturecache.py", line 3137, in jsonQuery
    cacheImages(mediatype, jcomms, database, data, title_name, id_name, force, n
odownload)
  File "texturecache.py", line 3307, in cacheImages
    if gLogger.VERBOSE and gLogger.LOGGING: gLogger.log("QUEUE ITEM: %s" % item)

  File "texturecache.py", line 2704, in __str__
    self.libraryid, self.missingOK)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 17: ordinal
not in range(128)

Here is my tc.log

Code:
f not MyUtility.isPython3:
      try:
        v = bytes(v.encode("iso-8859-1")).decode("utf-8")
      except UnicodeDecodeError:
        pass

    return v

It seems problem is in this encode/decode line:
Code:
v = bytes(v.encode("iso-8859-1")).decode("utf-8")

Can't decode
Code:
Character    ISO-8859-1    Unicode    UTF-8    Bytes    Name
à           0xC3             0x00C3    0xC3,     0x83    Latin Capital Letter A With Tilde

It might be because you'll first need to encode 'ascii' to 'unicode' and then to 'utf-8'?
Image Image
Reply
 
Thread Rating:
  • 17 Vote(s) - 4.76 Average


Messages In This Thread
RE: [RELEASE] Texture Cache Maintenance utility - by redglory - 2013-11-29, 20:25
Crash on Gotham on OS X - by desepticon - 2014-05-29, 17:57
Cleaning - by AleisterHH - 2018-05-28, 22:03
RE: Cleaning - by Milhouse - 2018-05-28, 22:16
qax genre not updated - by Just-Me_A-User - 2018-06-12, 22:06
RE: qax genre not updated - by Milhouse - 2018-06-12, 23:40


Logout Mark Read Team Forum Stats Members Help
[RELEASE] Texture Cache Maintenance utility4.7617
This forum uses Lukasz Tkacz MyBB addons.