Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 08-15-2010, 01:51 AM   #1
luthar28
Enthusiast
luthar28 began at the beginning.
 
Posts: 41
Karma: 10
Join Date: Jul 2010
Device: Kindle
Export from Indesign = strange characters

I've exported from InDesign to an HTML file (see below for an example). But rather than HTML codes (like &amp I'm getting what I *believe* to be some weird postscripting code (just based on a Google search).

It does *appear* to display correctly in the finished product -- but again, I'm always worried that somewhere, some reader will cough on it producing garbage.

The problem with search and replace in the source Indesign document to something more conventional, is that I have to go with straight quotes (blah).

Any idea why this is happening?

<p class="body-indent-">I don’t eat much and I go up to my room early to Facebook. My friends are all here on my computer. No one talks about the video. We know the rules. But no one knows what they’re supposed to write in their notebooks. Mr. Sorent handed us special-lesson composition notebooks that he wants us to decorate. We’re supposed to write down diary entries or essays or stories or doodles or anything we’re moved to do after reflecting upon the lesson. My notebook is open but empty, a pen lying in the spine. I’ve tried to write something, but there’s nothing, and I get that afraid-of-the-future feeling again.</p>
luthar28 is offline   Reply With Quote
Old 08-15-2010, 08:59 PM   #2
pholy
Booklegger
pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.
 
pholy's Avatar
 
Posts: 1,800
Karma: 7999034
Join Date: Jun 2009
Location: Toronto, Ontario, Canada
Device: BeBook(1 & 2010), PEZ, PRS-505, Kobo BT, PRS-T1, Playbook, Kobo Touch
It looks to me like InDesign is outputting UTF-8 Unicode, but your reader/editor doesn't understand UTF-8, so it is treating it as (perhaps) some MS code page. I always have to use a hex-dump to check that, just to be absolutely sure. Mostly I use gedit in Linux, which understands Unicode in most of its variations. -- UTF-8 is required by the epub standard, so it would be good to have an editor which understands UTF-8...
pholy is offline   Reply With Quote
Old 08-15-2010, 10:39 PM   #3
luthar28
Enthusiast
luthar28 began at the beginning.
 
Posts: 41
Karma: 10
Join Date: Jul 2010
Device: Kindle
Quote:
Originally Posted by pholy View Post
It looks to me like InDesign is outputting UTF-8 Unicode, but your reader/editor doesn't understand UTF-8, so it is treating it as (perhaps) some MS code page. I always have to use a hex-dump to check that, just to be absolutely sure. Mostly I use gedit in Linux, which understands Unicode in most of its variations. -- UTF-8 is required by the epub standard, so it would be good to have an editor which understands UTF-8...
Hmmm...any idea how *not* to output UTF-8?

But am I understanding correctly that you're saying that UTF-8 does work with Epub?
luthar28 is offline   Reply With Quote
Old 08-16-2010, 08:49 AM   #4
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,188
Karma: 727236
Join Date: Sep 2009
Device: PRS-505
Use Notepad++ to edit the html and it will usually recognise the utf-8 encoding automatically.

Using anything other than utf-8 (or -16) at any point is a bad, bad, bad, bad, bad, bad, bad idea when dealing with epubs, don't even think about using the older and more limited codings.
charleski is offline   Reply With Quote
Old 08-16-2010, 09:48 AM   #5
pholy
Booklegger
pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.
 
pholy's Avatar
 
Posts: 1,800
Karma: 7999034
Join Date: Jun 2009
Location: Toronto, Ontario, Canada
Device: BeBook(1 & 2010), PEZ, PRS-505, Kobo BT, PRS-T1, Playbook, Kobo Touch
Quote:
But am I understanding correctly that you're saying that UTF-8 does work with Epub?
UTF-8 not only works, it is required. You can't avoid UTF-8 if you work with epub files.
pholy is offline   Reply With Quote
Old 08-16-2010, 12:19 PM   #6
luthar28
Enthusiast
luthar28 began at the beginning.
 
Posts: 41
Karma: 10
Join Date: Jul 2010
Device: Kindle
Quote:
Originally Posted by pholy View Post
UTF-8 not only works, it is required. You can't avoid UTF-8 if you work with epub files.
Sorry -- I'm confused (not a surprise, I know). Still not really sure what UTF is (a way to display characters?)

This document, even with ’ as an apostrophe, and “ as a right quote, displays just fine as HTML, Epub, and as a Mobi.

So just leave it in? Doing a search and replace -- I'm always hesitant to do that on a document-wide basis because I never know what weird exception I'm going to get buried in the text.
luthar28 is offline   Reply With Quote
Old 08-16-2010, 05:17 PM   #7
pholy
Booklegger
pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.
 
pholy's Avatar
 
Posts: 1,800
Karma: 7999034
Join Date: Jun 2009
Location: Toronto, Ontario, Canada
Device: BeBook(1 & 2010), PEZ, PRS-505, Kobo BT, PRS-T1, Playbook, Kobo Touch
Leave it it... it's only your editor/viewer that is having problems.

For more background on UTF-8, I recommend you start with the first two sections of the Wikipedia article - I'd miss something if I tried to summarize it.
pholy is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Non-alpha characters not exporting properly to ePub from InDesign forlor ePub 9 07-12-2013 03:02 AM
Export to ePub from InDesign CS5 gardefjord ePub 42 10-29-2011 11:42 AM
InDesign direct export to mobi Adjust Kindle Formats 14 11-21-2010 03:36 PM
EPUB Expert Needed: Cant properly export epub from InDesign crottmann ePub 17 08-27-2010 11:23 AM
strange characters jomaweb Calibre 0 01-27-2010 07:10 AM


All times are GMT -4. The time now is 04:05 AM.


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