View Single Post
Old 11-26-2013, 05:51 PM   #1
fxp33
Addict
fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.
 
Posts: 261
Karma: 110864
Join Date: Mar 2013
Location: Bordeaux, France
Device: Kobo Glo, Aura HD, kindle paperwhite
Footnote encoding problem in kepub.epub

Hi,


I noticed that an ebook I made a few months ago had some problem displaying the utf-8 characters in the popup footnote.

In this test kepub.epub, the following line is clickable, and a footnote appears with the exact same text.

Code:
"French accents: ê, Â; È; Chinese: 乾;"
But I what I get in the footnote is in ANSI, not utf-8:

Code:
French accents: ê, Â; È; Chinese: 乾;
Can someone try it, and maybe tell me what is wrong in my syntax:


Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
  <title>Test popup footnote encoding</title>
</head>

<body>
  <header>
    <h1>Test</h1>
  </header>

  <p><b>Click on the paragraph below:</b> the exact same line should appear as a footnote.</p>

  <p><br />
  <a epub:type="noteref" href="#n1" title="French accents: ê, Â; È; Chinese: 乾;">French accents: ê, Â; È; Chinese: 乾;</a> </p>

  <section epub:type="rearnotes" style="display:none">
    <aside class="hidden" epub:type="footnote" id="n1">French accents: ê, Â; È; Chinese: 乾;</aside>
  </section>
</body>
</html>
Note that this code didn't work for me as epub...

Regards

François
Attached Files
File Type: epub Test Footnote popup encoding.kepub.epub (2.1 KB, 176 views)
fxp33 is offline   Reply With Quote