Branch: Tag:

2015-09-20

2015-09-20 08:06:39 by Henrik Grubbström (Grubba) <grubba@grubba.org>

autodoc_to_html: Output UTF-8.

Fixes "cannot output wide strings".

Also adds a corresponding meta tag for good measure.

1575:   string manual_title = "Pike Reference Manual";   string frame_html(string res, void|string title) {    title = title || manual_title; -  return "<html><head><title>" + quote(title) + "</title></head>\n" +  return "<html><head><title>" + quote(title) + "</title>\n" +  "<meta charset='utf-8' /></head>\n"    "<body bgcolor='white' text='black'>\n" + res +    "</body></html>";   }
1609:    if (exporter) {    string html = frame_html(layout_toploop(c));    exporter->filemodify(Git.MODE_FILE, c->get_attributes()->name); -  exporter->data(html); +  exporter->data(string_to_utf8(html));    break;    }    if(dest_path)
1618:    cd(dest_path);    }    Stdio.write_file( c->get_attributes()->name, -  frame_html(layout_toploop(c)) ); +  string_to_utf8(frame_html(layout_toploop(c))) );    if(cwd)    cd(cwd);    break;