View Single Post
Old 08-20-2014, 06:52 PM   #1
RZetlin
Addict
RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.
 
RZetlin's Avatar
 
Posts: 383
Karma: 3461302
Join Date: Mar 2013
Location: Canada
Device: Kobo Aura One, Kobo Glo, Kobo Aura HD (RIP)
Obok cannot read special characters

I recently got a book that has ★ in its title.

Unfortunately, Obok cannot decode this character correctly.

Code:
Traceback (most recent call last):
  File "c:\obok_2.01.py", line 198, in <module>
    print "%d: %s" % (i, volumekeys[key]["title"])
  File "C:\Python27\lib\encodings\cp850.py", line 12, in encode
    return codecs.charmap_encode(input,errors,encoding_map)
UnicodeEncodeError: 'charmap' codec can't encode character u'\u2605' in position
 8: character maps to <undefined>
I am a little puzzled on how I can overcome this.
RZetlin is offline   Reply With Quote