April 29, 2005 [DOC] HTML docs are not valid utf-8 files | ||||
---|---|---|---|---|
| ||||
Two of the HTML doc files, phobos.html and std_format.html are not valid UTF8 files. Specifically, this D code fails with "Error: 4invalid UTF-8 sequence" ... dchar[] lText; lText = std.utf.toUTF32(cast(char[])read("phobos.html")); lText = std.utf.toUTF32(cast(char[])read("std_format.html")); All the other document files load correctly. (I'm working on a utility that generates a cross-reference index HTML file(s) based on whatever HTML files it's given. I'm tired of trying to find anything in the official docs, even though I know its there somewhere.) -- Derek Melbourne, Australia 29/04/2005 4:33:43 PM |
April 29, 2005 Re: [DOC] HTML docs are not valid utf-8 files | ||||
---|---|---|---|---|
| ||||
Posted in reply to Derek Parnell | Derek Parnell wrote: > Two of the HTML doc files, phobos.html and std_format.html > are not valid UTF8 files. They are not valid HTML either... "tidy" is useful to clean them. > (I'm working on a utility that generates a cross-reference index HTML > file(s) based on whatever HTML files it's given. I'm tired of trying to > find anything in the official docs, even though I know its there > somewhere.) I made a XHTML/UTF-8 version, but as it is non-distributable... --anders |
Copyright © 1999-2021 by the D Language Foundation