View Single Post
Old 04-17-2011, 10:50 AM   #7
webwizard
Member
webwizard began at the beginning.
 
webwizard's Avatar
 
Posts: 14
Karma: 10
Join Date: Feb 2011
Device: Kindle DX
Quote:
Originally Posted by kovidgoyal View Post
calibredb set_metadata 1127 zzzzz.txt > out.txt
No luck so far...

Code:
U:\opf>chcp 65001
Tabella codici attiva: 65001

U:\opf>calibredb show_metadata --as-opf 1127 >zzzzz.txt

U:\opf>calibredb set_metadata 1127 zzzzz.txt > out.txt
Traceback (most recent call last):
  File "site.py", line 103, in main
  File "site.py", line 85, in run_entry_point
  File "site-packages\calibre\library\cli.py", line 1183, in main
  File "site-packages\calibre\library\cli.py", line 483, in command_set_metadata

  File "site-packages\calibre\library\cli.py", line 459, in do_set_metadata
  File "site-packages\calibre\library\cli.py", line 429, in do_show_metadata
  File "encodings\cp1252.py", line 12, in encode
UnicodeEncodeError: 'charmap' codec can't encode characters in position 280-283:
 character maps to <undefined>

U:\opf>type out.txt
Python function terminated unexpectedly
  'charmap' codec can't encode characters in position 280-283: character maps to
 <undefined> (Error Code: 1)

U:\opf>
webwizard is offline   Reply With Quote