Tales of the Parodyverse >> View Post
·
Post By
Manga Shoggoth

Member Since: Fri Jan 02, 2004
Posts: 391
In Reply To
HH

Subj: That was the whole point of multibyte character sets...
Posted: Wed Dec 16, 2015 at 10:22:57 am EST (Viewed 791 times)
Reply Subj: Out of characters, then.
Posted: Wed Dec 16, 2015 at 06:26:18 am EST (Viewed 2 times)



    Quote:
    And then I discovered something even weirder. Take one of the pages that doesn't have a character conversion problem but does have the white instead of black background problem. Say http://www.chillwater.org.uk/HH/hhstories/untold%20tales%20of%20ll%20341.htm If I manually correct the html file using Notepad ([body] to [body bgcolor="#000000" text="#ffffff" link="lightblue" vlink="white" alink="gray"]) the thing is fixed nicely. If I try a batch text program it fixes the background but actually replicates the character conversion problem of the other files!


OK - I think I know what has happened. The single quote is encoded as E2 80 99.

When you make the change by hand, the only thing you are changing is the [body] tag.

When you do it using the batch converter, the converter reads in the file, makes the change, and then writes it back. I suspect that the character set encoding that the converter uses then sees and translates that into three separate characters (as if it is reading the file in as pure ASCII, then trying to output a multibyte equivalent when it saves the file).

All I can suggest is that you look at the settings on the batch converter and see if it has anything on character encoding for input and output.

Oh, and I had a very fine Pate, Sausages and Mash and Trifle, washed down by a very engaging pint of Aspals. I hope you meal was as good...






As is always the case with my writing, please feel free to comment. I welcome both positive and negative criticism of my work, although I cannot promise to enjoy the negative.

Posted with Mozilla Firefox 42.0 on Windows 7
On Topic™ © 2003-2024 Powermad Software
Copyright © 2003-2024 by Powermad Software