Skip to content

Commit

Permalink
Lets use utf8 when we actually fix utf8, for now use latin1 since it …
Browse files Browse the repository at this point in the history
…works
  • Loading branch information
daleharvey committed Nov 27, 2011
1 parent ff48a27 commit 53da05a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file modified erldocs
Binary file not shown.
6 changes: 3 additions & 3 deletions src/erldocs_core.erl
Original file line number Diff line number Diff line change
Expand Up @@ -511,9 +511,9 @@ htmlchars([Else | Rest], Acc) -> htmlchars(Rest, [Else | Acc]).
-spec read_xml(list(), list()) -> tuple().
read_xml(_Conf, XmlFile) ->

%% Opts = [{fetch_path, [code:lib_dir(docbuilder, dtd)]},
%% {encoding, "utf-8"}],
Opts = [{fetch_path, [code:lib_dir(docbuilder, dtd)]}],
Opts = [{fetch_path, [code:lib_dir(docbuilder, dtd)]},
{encoding, "latin1"}],
%Opts = [{fetch_path, [code:lib_dir(docbuilder, dtd)]}],

{Xml, _} = xmerl_scan:file(XmlFile, Opts),
xmerl_lib:simplify_element(Xml).
Expand Down
2 changes: 1 addition & 1 deletion templates/erldocs.dtl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">

<head>
<meta charset="utf-8" />
<meta charset="latin1" />
<title>{{ title }} - erldocs.com (Erlang Documentation)</title>
<link rel="search" type="application/opensearchdescription+xml"
title="erldocs" href="/search.xml">
Expand Down

0 comments on commit 53da05a

Please sign in to comment.