tab2opf icon indicating copy to clipboard operation
tab2opf copied to clipboard

Error running under Windows

Open clach04 opened this issue 2 years ago • 0 comments

Getting error:

C:\code\py\tab2opf>py -3   tab2opf.py  -t gcide C:\Users\user\Downloads\dictionary\gcide\stardict.txt
Reading keys
Writing keys
Traceback (most recent call last):
  File "tab2opf.py", line 329, in <module>
    ndicts = writekeys(defns, name)
  File "tab2opf.py", line 252, in writekeys
    writekey(to, key, defns[key])
  File "tab2opf.py", line 229, in writekey
    to.write('; '.join(ndefn for _, ndefn, _ in g))
  File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\encodings\cp1252.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u0227' in position 49: character maps to <undefined>

clach04 avatar Jan 08 '22 23:01 clach04