@@ -2845,7 +2845,7 @@ if(FALSE) {
28452845 order(xx , toupper(x ), x )
28462846 }
28472847
2848- html_header <- function (pkg , title , version , conn )
2848+ html_header <- function (pkg , title , version , encoding , conn )
28492849 {
28502850 cat(paste(HTMLheader(title , Rhome = " ../../.." ,
28512851 up = " ../../../doc/html/packages.html" ,
@@ -2854,9 +2854,15 @@ if(FALSE) {
28542854 ' <h2>Documentation for package ‘' , pkg , ' ’ version ' ,
28552855 version , ' </h2>\n\n ' , sep = " " , file = conn )
28562856
2857- cat(' <ul><li><a href="../DESCRIPTION">DESCRIPTION file</a>.</li>\n ' , file = conn )
2857+ cat(' <ul><li><a href="../DESCRIPTION" type="text/plain' ,
2858+ # # These days we should really always have UTF-8 ...
2859+ if (! is.na(encoding ) && (encoding == " UTF-8" ))
2860+ " ; charset=utf-8" ,
2861+ ' ">DESCRIPTION file</a>.</li>\n ' ,
2862+ sep = " " , file = conn )
28582863 if (file.exists(file.path(outDir , " doc" )))
2859- cat(' <li><a href="../doc/index.html">User guides, package vignettes and other documentation.</a></li>\n ' , file = conn )
2864+ cat(' <li><a href="../doc/index.html">User guides, package vignettes and other documentation.</a></li>\n ' ,
2865+ file = conn )
28602866 if (file.exists(file.path(outDir , " demo" )))
28612867 cat(' <li><a href="../demo">Code demos</a>. Use <a href="../../utils/help/demo">demo()</a> to run them.</li>\n ' ,
28622868 sep = " " , file = conn )
@@ -2984,7 +2990,7 @@ if(FALSE) {
29842990 # # No need to handle encodings: everything is in UTF-8
29852991
29862992 html_header(desc [" Package" ], htmlize(desc [" Title" ], TRUE ),
2987- desc [" Version" ], outcon )
2993+ desc [" Version" ], desc [ " Encoding " ], outcon )
29882994
29892995 use_alpha <- (nrow(M ) > 100 )
29902996 if (use_alpha ) {
0 commit comments