Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 08-18-2011, 02:30 AM   #1
Bertrand
Zealot
Bertrand began at the beginning.
 
Posts: 118
Karma: 10
Join Date: Dec 2008
Location: France
Device: None
Encoding of special characters in CSS file

My CSS files are produced via Writer2Epub, LibreOffice extension.

When viewing the CSS file in Sigil (all versions), all accented characters (in CSS comments) are replaced by a question mark.

In Dreamweaver, or Notepad++, or PSpad, it's OK.

I don't know if this problem has already been reported. I don't see anything about it in the bugbase.

Thanks.


Bertrand is offline   Reply With Quote
Old 08-18-2011, 03:13 AM   #2
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
What is the encoding of the CSS file? It probably isn't saved as UTF-8 by the extension.

Then again, don't worry about it. They are only comments...
Toxaris is offline   Reply With Quote
Advert
Old 08-18-2011, 04:03 AM   #3
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
The spec requires the CSS files to be utf-8 (or utf-16):

1.4.1.5: CSS Requirements

External CSS stylesheets referenced by OPS documents must use UTF-8 or UTF-16 encoding. Inclusion of Byte Order Mark (BOM) is mandatory for UTF-16 encoding and optional for UTF-8 encoding.

or rather, you can use whatever encoding you want, but it will be interpreted as if it were utf-8/16.

Last edited by Jellby; 08-18-2011 at 04:07 AM.
Jellby is online now   Reply With Quote
Old 08-18-2011, 04:12 AM   #4
Bertrand
Zealot
Bertrand began at the beginning.
 
Posts: 118
Karma: 10
Join Date: Dec 2008
Location: France
Device: None
Ah...you're right. W2E does not export the CSS file in utf-8. Or maybe it is LibreOffice ? I've just noticed it after a closer look in Dreamweaver.

Well, sure, it's not important, it's just that I don't like all those ugly symbols :-)

Thanks.
Bertrand is offline   Reply With Quote
Old 08-18-2011, 06:12 AM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,786
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Bertrand View Post
Ah...you're right. W2E does not export the CSS file in utf-8. Or maybe it is LibreOffice ? I've just noticed it after a closer look in Dreamweaver.

Well, sure, it's not important, it's just that I don't like all those ugly symbols :-)

Thanks.
You should report the issue to the writer2epub forum
theducks is online now   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Czech characters not being displayed - ANSI encoding gulo Calibre 4 02-02-2015 04:31 PM
Best practices: Special characters virtual_ink ePub 8 07-12-2011 03:29 AM
Special Characters abbotrichard ePub 4 07-01-2011 06:03 PM
special characters in epub? biltron Introduce Yourself 5 12-20-2009 03:50 PM
Special Characters in Plucker Eroica Reading and Management 4 11-15-2007 11:22 AM


All times are GMT -4. The time now is 10:39 AM.


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