Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 06-21-2009, 06:46 PM   #1
rcuadro
Wizard
rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.
 
rcuadro's Avatar
 
Posts: 1,686
Karma: 874275
Join Date: Nov 2008
Location: Virginia Beach, VA
Device: Kindle DX
RTF to MOBI error

This is on a Mac running Leopard and 5.14 Calibre. I do have MS Office and Star Office installed but I cant get the RTF to convert...

Code:
Job: **Convert book: The Bourne identity**
**tuple**: ('InvalidRtfException', u"'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)Invalid RTF: File not ascii encoded.\n")
**Traceback**:
Traceback (most recent call last):
File "/Applications/calibre.app/Contents/console.app/Contents/Resources/lib/python2.6/site-packages.zip/calibre/parallel.py", line 960, in worker
result = work(client_socket, func, args, kwdargs)
File "/Applications/calibre.app/Contents/console.app/Contents/Resources/lib/python2.6/site-packages.zip/calibre/parallel.py", line 918, in work
res = func(*args, **kargs)
File "/Applications/calibre.app/Contents/console.app/Contents/Resources/lib/python2.6/site-packages.zip/calibre/ebooks/mobi/from_any.py", line 51, in any2mobi
any2epub(opts, path, create_epub=False, oeb_cover=True, extract_to=oebdir)
File "/Applications/calibre.app/Contents/console.app/Contents/Resources/lib/python2.6/site-packages.zip/calibre/ebooks/epub/from_any.py", line 168, in any2epub
path = MAP[ext](path, tdir2, opts)
File "/Applications/calibre.app/Contents/console.app/Contents/Resources/lib/python2.6/site-packages.zip/calibre/ebooks/epub/from_any.py", line 86, in rtf2opf
generate_html(path, tdir)
File "/Applications/calibre.app/Contents/console.app/Contents/Resources/lib/python2.6/site-packages.zip/calibre/ebooks/lrf/rtf/convert_from.py", line 144, in generate_html
xml = generate_xml(rtfpath, tdir)
File "/Applications/calibre.app/Contents/console.app/Contents/Resources/lib/python2.6/site-packages.zip/calibre/ebooks/lrf/rtf/convert_from.py", line 134, in generate_xml
parser.parse_rtf()
File "calibre/ebooks/rtf2xml/ParseRtf.pyo", line 237, in parse_rtf
InvalidRtfException: 'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)Invalid RTF: File not ascii encoded.


**Log**:
Converting RTF to XML...
line: 229 char: 128
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 269 char: 254
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 332 char: 231
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 588 char: 92
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 594 char: 698
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 805 char: 439
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 872 char: 140
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 957 char: 90
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 1285 char: 202
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 1309 char: 312
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 1478 char: 287
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 1567 char: 102
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 1583 char: 115
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 1735 char: 96
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 1967 char: 413
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 2869 char: 101
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 3031 char: 344
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 3377 has bad encoding
line: 3381 char: 295
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 3470 char: 356
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 3508 char: 140
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 3600 has bad encoding
line: 3979 char: 354
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 4009 char: 528
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 4332 char: 497
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 4396 char: 220
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 4645 char: 385
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 4836 char: 633
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 5047 char: 119
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 5183 char: 134
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 5616 char: 46
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 5760 char: 248
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 5799 char: 291
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 5829 char: 575
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 5930 char: 195
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 6153 char: 604
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 6290 char: 4
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 6296 char: 586
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 6429 char: 571
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 6475 has bad encoding
line: 6572 char: 396
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 6621 char: 209
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
line: 6673 char: 117
'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)
File "/var/folders/Tg/Tg99CUaZGmy7PL6INHfZdE+++TI/-Tmp-/calibre_0.5.14_p0Q0TA.rtf" does not appear to be RTF.
('InvalidRtfException', u"'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)Invalid RTF: File not ascii encoded.\n")
Traceback (most recent call last):
File "/Applications/calibre.app/Contents/console.app/Contents/Resources/lib/python2.6/site-packages.zip/calibre/parallel.py", line 960, in worker
result = work(client_socket, func, args, kwdargs)
File "/Applications/calibre.app/Contents/console.app/Contents/Resources/lib/python2.6/site-packages.zip/calibre/parallel.py", line 918, in work
res = func(*args, **kargs)
File "/Applications/calibre.app/Contents/console.app/Contents/Resources/lib/python2.6/site-packages.zip/calibre/ebooks/mobi/from_any.py", line 51, in any2mobi
any2epub(opts, path, create_epub=False, oeb_cover=True, extract_to=oebdir)
File "/Applications/calibre.app/Contents/console.app/Contents/Resources/lib/python2.6/site-packages.zip/calibre/ebooks/epub/from_any.py", line 168, in any2epub
path = MAP[ext](path, tdir2, opts)
File "/Applications/calibre.app/Contents/console.app/Contents/Resources/lib/python2.6/site-packages.zip/calibre/ebooks/epub/from_any.py", line 86, in rtf2opf
generate_html(path, tdir)
File "/Applications/calibre.app/Contents/console.app/Contents/Resources/lib/python2.6/site-packages.zip/calibre/ebooks/lrf/rtf/convert_from.py", line 144, in generate_html
xml = generate_xml(rtfpath, tdir)
File "/Applications/calibre.app/Contents/console.app/Contents/Resources/lib/python2.6/site-packages.zip/calibre/ebooks/lrf/rtf/convert_from.py", line 134, in generate_xml
parser.parse_rtf()
File "calibre/ebooks/rtf2xml/ParseRtf.pyo", line 237, in parse_rtf
InvalidRtfException: 'ascii' codec can't decode byte 0x96 in position 0: ordinal not in range(128)Invalid RTF: File not ascii encoded.
rcuadro is offline   Reply With Quote
Old 06-21-2009, 07:30 PM   #2
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Only ascii encoded RTF files are supported for conversion. You need to save the file with ascii encoding for it to work.
user_none is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error when converting RTF to EPUB doreenjoy Calibre 3 05-19-2012 03:32 AM
Conversions from RTF (to mobi/epub) Gwen Morse Calibre 6 10-14-2010 06:00 AM
Table of Contents RTF > MOBI daxmon87 Calibre 12 10-09-2010 12:46 AM
Pagebreaks for RTF to mobi question mputtr Calibre 1 03-17-2010 04:20 AM
Error with RTF Conversion daesdaemar Calibre 4 01-29-2009 05:42 PM


All times are GMT -4. The time now is 08:53 PM.


MobileRead.com is a privately owned, operated and funded community.