aboutsummaryrefslogtreecommitdiffstats
path: root/lib/xmerl/src/xmerl_sax_parser.erl
diff options
context:
space:
mode:
authorLars Thorsen <[email protected]>2011-04-26 14:54:24 +0200
committerLars Thorsen <[email protected]>2011-05-10 09:13:24 +0200
commitf721fb91140cb09b63b2563e61585ea2a272761c (patch)
tree113d815fb6cadbccce7751039c67024c3910c1dd /lib/xmerl/src/xmerl_sax_parser.erl
parent111410b7809269d8dec37722d6723d250c412cda (diff)
downloadotp-f721fb91140cb09b63b2563e61585ea2a272761c.tar.gz
otp-f721fb91140cb09b63b2563e61585ea2a272761c.tar.bz2
otp-f721fb91140cb09b63b2563e61585ea2a272761c.zip
Added the xmerl test suites.
Diffstat (limited to 'lib/xmerl/src/xmerl_sax_parser.erl')
-rw-r--r--lib/xmerl/src/xmerl_sax_parser.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/xmerl/src/xmerl_sax_parser.erl b/lib/xmerl/src/xmerl_sax_parser.erl
index eb9f8deec6..c1acf51b8a 100644
--- a/lib/xmerl/src/xmerl_sax_parser.erl
+++ b/lib/xmerl/src/xmerl_sax_parser.erl
@@ -278,6 +278,7 @@ detect_charset_1(Xml, State) ->
convert_encoding(Enc) -> %% Just for 7,8 bit + utf8
case string:to_lower(Enc) of
"utf-8" -> utf8;
+ "us-ascii" -> utf8;
"iso-8859-1" -> latin1; % Handle all iso-8859 as latin1
"iso-8859-2" -> latin1;
"iso-8859-3" -> latin1;