| 
			
			 | 
		#1 | 
| 
			
			
			
			 Addict 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 383 
				Karma: 3461302 
				Join Date: Mar 2013 
				Location: Canada 
				
				
				Device: Kobo Aura One, Kobo Glo, Kobo Aura HD (RIP) 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Obok cannot read special characters
			 
			
			
			I recently got a book that has ★ in its title. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Unfortunately, Obok cannot decode this character correctly. Code: 
	Traceback (most recent call last):
  File "c:\obok_2.01.py", line 198, in <module>
    print "%d: %s" % (i, volumekeys[key]["title"])
  File "C:\Python27\lib\encodings\cp850.py", line 12, in encode
    return codecs.charmap_encode(input,errors,encoding_map)
UnicodeEncodeError: 'charmap' codec can't encode character u'\u2605' in position
 8: character maps to <undefined>
 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,698 
				Karma: 79983758 
				Join Date: Nov 2007 
				Location: Toronto 
				
				
				Device: Libra H2O, Libra Colour 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Sorry to say you're best to ask where you found Obok.. Maybe a friendly Alf ?
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Addict 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 205 
				Karma: 352572 
				Join Date: Jul 2009 
				Location: USA 
				
				
				Device: Sony PRS 650, Nook HD+, Aura HD, Aura H2O v1, Libra 2 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I had the same problem today. Here is the solution. If you can edit the obok file (I used editra), at line 198, replace that line with 
		
	
		
		
		
		
		
		
		
		
		
		
	
	print "%d: %s" % (i, volumekeys[key]["title"].encode('utf8')) Save the file. And it worked, at least for me  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Resident Curmudgeon 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,782 
				Karma: 150249619 
				Join Date: Nov 2006 
				Location: Roslindale, Massachusetts 
				
				
				Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			That line doesn't exist as is because you have an old outdated version of obok. You want the 3.0.7 version which now handles DRM free kepub.
		 
		
	
		
		
		
		
		
		
		
		
		
		
		
			Last edited by JSWolf; 11-25-2014 at 01:57 PM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Addict 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 205 
				Karma: 352572 
				Join Date: Jul 2009 
				Location: USA 
				
				
				Device: Sony PRS 650, Nook HD+, Aura HD, Aura H2O v1, Libra 2 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I cannot figure out how to use the obok plugin with calibre. When I tried to add files from the kobo\kepub directory on my PC, calibre just adds an unknown file. And I have no clue where to download the newest obok_xxx.py file, the one I found on Alf blog is the old one obok_2.01.py
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 Ex-Helpdesk Junkie 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421 
				Karma: 85400180 
				Join Date: Nov 2012 
				Location: The Beaten Path, USA, Roundworld, This Side of Infinity 
				
				
				Device: Kindle Touch fw5.3.7 (Wifi only) 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 Addict 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 205 
				Karma: 352572 
				Join Date: Jul 2009 
				Location: USA 
				
				
				Device: Sony PRS 650, Nook HD+, Aura HD, Aura H2O v1, Libra 2 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Thanks, I finally figured out how to use the plug in
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 Enthusiast 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 25 
				Karma: 71334 
				Join Date: Dec 2014 
				
				
				
				Device: Kobo Touch 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I too am having problems with Obok encoding.  I suspect it's setting encoding that can't display non-Roman characters?  Having just bought a ton of Japanese books I am dismayed at inability to read them on my Kobo.* 
		
	
		
		
		
		
		
		
		
		
		
		
	
	It quite happily makes the files and they load onto my Kobo, they just seem to be mostly blank. Ellipses (...) or something very similar appear; numbers appear because they're in Roman, and images are okay. Looks like it can't handle Japanese characters, which is going to be a serious issue. Can anyone advise, or point me at Obok's creator to ask? *I can't even read them as bought, without playing around with DRM. It's complicated.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#9 | 
| 
			
			
			
			 Resident Curmudgeon 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,782 
				Karma: 150249619 
				Join Date: Nov 2006 
				Location: Roslindale, Massachusetts 
				
				
				Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Current version of Obok is 3.1.1. Try to find that version and give it a try.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#10 | |
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489 
				Karma: 2914715 
				Join Date: Jun 2012 
				
				
				
				Device: kobo touch 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#11 | ||
| 
			
			
			
			 Treachery of images ... 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,149 
				Karma: 94320195 
				Join Date: May 2012 
				Location: Australia 
				
				
				Device: Sony 650, Kobo Glo, H2O, Aura One, Forma, Libra 2, Libra Colour 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	Quote: 
	
 Please let us know if what tshering suggested works out.  | 
||
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#12 | 
| 
			
			
			
			 Enthusiast 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 25 
				Karma: 71334 
				Join Date: Dec 2014 
				
				
				
				Device: Kobo Touch 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Thanks for the very speedy response!  As soon as time allows, I will try adding and selecting a Japanese font specially.  I have previously read books including Japanese text, but maybe these are specially encoded in some way or presented as images. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Incidentally, the link is not to the latest 3.1.1 version, it's to 3.0.7 - I haven't yet found 3.1.1 anywhere. But I'll try the font solution first and report back.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#13 | 
| 
			
			
			
			 Enthusiast 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 25 
				Karma: 71334 
				Join Date: Dec 2014 
				
				
				
				Device: Kobo Touch 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			My Kobo turns out to have no Japanese font, only a very limited selection. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	I have followed the instructions on this site to download and install a Japanese font. I used Unifont. While I wouldn't recommend it aesthetically, the book is now displaying correctly so the method is sound. I also inspected my existing Japanese content that (as mentioned above) was already displaying correctly. This turns out to be in html format, and presumably these are processed differently from epubs. Is it worth me explaining the context of my problem for future readers? If so, should I do so here or on a new thread?  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#14 | 
| 
			
			
			
			 Treachery of images ... 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,149 
				Karma: 94320195 
				Join Date: May 2012 
				Location: Australia 
				
				
				Device: Sony 650, Kobo Glo, H2O, Aura One, Forma, Libra 2, Libra Colour 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Obok 3.0.7 is the latest version and any newer version will be released via that Article. Should you need obok help or want to comment generally about obok then please use the posts below the Article.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#15 | |
| 
			
			
			
			 Treachery of images ... 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,149 
				Karma: 94320195 
				Join Date: May 2012 
				Location: Australia 
				
				
				Device: Sony 650, Kobo Glo, H2O, Aura One, Forma, Libra 2, Libra Colour 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
            
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Special characters in conversion | derekn552 | Conversion | 4 | 02-05-2014 08:31 PM | 
| Special Characters | abbotrichard | ePub | 4 | 07-01-2011 07:03 PM | 
| Epub and special characters again | mtravellerh | Calibre | 3 | 01-04-2009 01:55 PM | 
| REFERENCE: Special Characters | nrapallo | IMP | 2 | 04-07-2008 02:29 PM | 
| Special Characters / Fonts | Gatton | IMP | 4 | 03-21-2008 02:43 AM |