10-18-2008, 04:21 AM | #1 |
Steerage Class
Posts: 711
Karma: 505995
Join Date: Mar 2008
Location: Pacific Northwest, USA
Device: Won't fit here anymore, see sig for a list of liseuses.
|
Error converting accented characters into LRF with calibre
I'm trying to convert a book from mobi format to lrf. The book was translated from French, so it has a lot of accents and cedillas in it. Calibre gives the following error:
('UnicodeEncodeError', u"'ascii' codec can't encode character u'\\xe8' in position 38: ordinal not in range(128)") I'm guessing the LRF format cannot handle these characters? Or does it not recognize the hex code? Is there a way around this, like making calibre just ignore the accents? Not a good solution, but it's better than nothing. |
10-18-2008, 05:40 AM | #2 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
The LRF format handles accented characters just fine - lots of the books that I've created have them. Sounds like an issue specific to Calibre.
|
Advert | |
|
10-18-2008, 09:34 AM | #3 |
Wizard
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
I think you need to specify the encoding of the text since apparently Calibre detects it wrongly. Try checking the commandline parameters.
|
10-18-2008, 12:28 PM | #4 |
creator of calibre
Posts: 43,856
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Sounds like a bug. Open a ticket and attach the file.
|
10-18-2008, 08:56 PM | #5 |
Steerage Class
Posts: 711
Karma: 505995
Join Date: Mar 2008
Location: Pacific Northwest, USA
Device: Won't fit here anymore, see sig for a list of liseuses.
|
Thanks, Harry, Igor, Kovid. I have opened a ticket with the file attachment.
|
Advert | |
|
10-19-2008, 12:15 AM | #6 |
Steerage Class
Posts: 711
Karma: 505995
Join Date: Mar 2008
Location: Pacific Northwest, USA
Device: Won't fit here anymore, see sig for a list of liseuses.
|
Wow, I just viewed the ticket and saw that this has been fixed. Talk about fast! Woot!
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sorting with accented characters | chaley | Calibre | 20 | 12-11-2010 07:14 AM |
Accented characters on PRS-505 | gandalfbp | Calibre | 4 | 04-19-2010 07:48 AM |
Foreign accented characters and libprs500 | Stingo | Calibre | 6 | 02-24-2008 07:51 PM |
PRS-500 Accented characters onto reader using Mac | squiggle8 | Sony Reader Dev Corner | 9 | 12-06-2007 04:01 PM |
Accented characters | bingle | Sony Reader | 7 | 07-25-2007 06:36 AM |