![]() |
#1 |
Zealot
![]() Posts: 124
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. ![]() ![]() |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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... |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
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. |
![]() |
![]() |
![]() |
#4 |
Zealot
![]() Posts: 124
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. |
![]() |
![]() |
![]() |
#5 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,891
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
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 |