![]() |
#1 |
Member
![]() Posts: 13
Karma: 10
Join Date: Jul 2011
Device: kindle
|
PCDATA invalid Char value 12
Hi - I'm new to Sigil. I opened a txt file in it and 2 problems:
(1) I get error msg: "This page contains the following errors: error on line 933 at column 6: PCDATA invalid Char value 12. Below is a rendering of the page up to the first error." It deletes all text after that error msg. line 933 is a simple sentence: <p> Thank You For Reading!</p> As a test, I deleted that line, and it gives the same error msg for another line 943 which again is a simple sentence used throughout the book: <p> Discover More</p> How do I get rid of these error messages? (2) Why does Sigil insert two spaces after <p> before the text? The preview in ADE (adobe digital editions) displays zero space there. thank you! |
![]() |
![]() |
![]() |
#2 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,771
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Your text encoding is bad. Not utf-8. The error message says you have an invisible character that has a byte value of 12 (an illegal DC2 - Device Control 2 control character) at character 6 on that line. It looks like it is repeated later on and shows up as an empty square based on your font.
This looks like the text came from a bad terminal capture program that added its own control codes. Delete them by hand. Or use copy to capture one, and use Find and Replace to remove them all. Last edited by KevinH; 07-23-2022 at 10:03 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,577
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Also, if your file is actually html (as your snippets indicate) you shouldn't be using Sigil's Open Text File in the first place. That feature is for plain text that contains no markup. If the file is html, change the extension and add it to Sigil normally. Once you correct the encoding issues of course.
|
![]() |
![]() |
![]() |
#4 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 518
Karma: 2268308
Join Date: Nov 2015
Device: none
|
Try replacing "\f" with nothing in regular expressions mode.
|
![]() |
![]() |
![]() |
#5 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,288
Karma: 169098402
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I've seen text files that used 0x0C (FF) to move to a new page. Probably a good use of form feed when those files were created (old CPMUG documentation files).
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Member
![]() Posts: 13
Karma: 10
Join Date: Jul 2011
Device: kindle
|
thank you! I solved the problem by creating the <body> in UltraEdit text editor first, then copying it into the default text file that Sigil displays when I click ctrl-N.
When opening a New file, is it best to start with "new default" or "epub3"? I'm formatting only for kindle. |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with char encoding | sse450 | Calibre | 7 | 12-02-2019 12:57 AM |
Invisible Char and too many <blockquote>'s | phossler | Editor | 8 | 08-19-2014 10:33 AM |
Display Char Value | phossler | Editor | 2 | 05-05-2014 05:27 PM |
50 char limit? | BrianG | Calibre | 2 | 01-25-2010 10:15 AM |