04-17-2011, 07:03 AM | #1 |
Member
Posts: 20
Karma: 10
Join Date: Feb 2011
Device: Kindle DX
|
calibredb strange behaviour
I am still missing something.
I try to pull out the OPF structure using: Code:
calibredb show_metadata --as-opf 1127 >zzzzz.txt Code:
calibredb set_metadata 1127 zzzzz.txt Code:
Python function terminated unexpectedly 'charmap' codec can't encode characters in position 280-283: character maps to <undefined> (Error Code: 1) 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> |
04-17-2011, 09:07 AM | #2 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
redirect the output from show_metadata to a file. The windows console in its default configuration cannot handle unicode output very well.
|
04-17-2011, 09:23 AM | #3 |
Member
Posts: 20
Karma: 10
Join Date: Feb 2011
Device: Kindle DX
|
|
04-17-2011, 09:23 AM | #4 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
the same way you did it in your first command
|
04-17-2011, 09:29 AM | #5 |
Member
Posts: 20
Karma: 10
Join Date: Feb 2011
Device: Kindle DX
|
|
04-17-2011, 09:30 AM | #6 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibredb set_metadata 1127 zzzzz.txt > out.txt
|
04-17-2011, 09:50 AM | #7 |
Member
Posts: 20
Karma: 10
Join Date: Feb 2011
Device: Kindle DX
|
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> |
04-17-2011, 10:02 AM | #8 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Ah you have characters in your metadata that cannot be encoded in mbcs. Dont worry about the error, it just means calibre failed to print out the updated metadata. The metadata will still have been updated.
|
04-17-2011, 10:14 AM | #9 |
Member
Posts: 20
Karma: 10
Join Date: Feb 2011
Device: Kindle DX
|
|
04-17-2011, 10:17 AM | #10 |
Member
Posts: 20
Karma: 10
Join Date: Feb 2011
Device: Kindle DX
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Strange behaviour with PDFs | timlegge | Kobo Reader | 3 | 06-24-2010 10:53 PM |
Strange behaviour of TOC for one character | paulpeer | Calibre | 6 | 03-07-2010 12:03 PM |
Strange charging behaviour | bob_ninja | Bookeen | 2 | 01-15-2010 07:44 AM |
Strange Behaviour | poshm | PocketBook | 9 | 12-31-2009 09:39 AM |
2.11 Strange behaviour on startup | ElaHuguet | iRex | 3 | 10-03-2007 02:03 PM |