aboutsummaryrefslogtreecommitdiffstats
path: root/lib/xmerl/src
diff options
context:
space:
mode:
authorLars Thorsen <[email protected]>2011-05-12 08:09:50 +0200
committerLars Thorsen <[email protected]>2011-05-17 07:33:48 +0200
commit797126e753f922bfee56c9e1c34de5297c33f1e4 (patch)
treeee4fcab544daaf8c9f4003bd9382ca054c236c0a /lib/xmerl/src
parent7e2d83439f64a74091b371fae82ab0163c415f05 (diff)
downloadotp-797126e753f922bfee56c9e1c34de5297c33f1e4.tar.gz
otp-797126e753f922bfee56c9e1c34de5297c33f1e4.tar.bz2
otp-797126e753f922bfee56c9e1c34de5297c33f1e4.zip
Fix default encoding in SAX parser.
Diffstat (limited to 'lib/xmerl/src')
-rw-r--r--lib/xmerl/src/xmerl_sax_parser.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/xmerl/src/xmerl_sax_parser.erl b/lib/xmerl/src/xmerl_sax_parser.erl
index c1acf51b8a..571feabee0 100644
--- a/lib/xmerl/src/xmerl_sax_parser.erl
+++ b/lib/xmerl/src/xmerl_sax_parser.erl
@@ -263,11 +263,11 @@ detect_charset_1(<<16#3C, 16#3F, 16#78, 16#6D, 16#6C, Xml2/binary>> = Xml, State
{Xml, State#xmerl_sax_parser_state{encoding=Enc}}
end;
_ ->
- {Xml, State#xmerl_sax_parser_state{encoding=utf8}}
+ {Xml, State}
end
end;
detect_charset_1(Xml, State) ->
- {Xml, State#xmerl_sax_parser_state{encoding=utf8}}.
+ {Xml, State}.
%%----------------------------------------------------------------------
%% Function: convert_encoding(Enc)