We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdc78f8 commit 5a6e176Copy full SHA for 5a6e176
src/header/shared/charset.rs
@@ -117,7 +117,7 @@ impl FromStr for Charset {
117
"ISO-8859-8" => Iso_8859_8,
118
"ISO-8859-9" => Iso_8859_9,
119
"ISO-8859-10" => Iso_8859_10,
120
- "Shift-JIS" => Shift_Jis,
+ "SHIFT-JIS" => Shift_Jis,
121
"EUC-JP" => Euc_Jp,
122
"ISO-2022-KR" => Iso_2022_Kr,
123
"EUC-KR" => Euc_Kr,
@@ -140,6 +140,7 @@ fn test_parse() {
140
assert_eq!(Us_Ascii,"us-ascii".parse().unwrap());
141
assert_eq!(Us_Ascii,"US-Ascii".parse().unwrap());
142
assert_eq!(Us_Ascii,"US-ASCII".parse().unwrap());
143
+ assert_eq!(Shift_Jis,"Shift-JIS".parse().unwrap());
144
assert_eq!(Ext("ABCD".to_string()),"abcd".parse().unwrap());
145
}
146
0 commit comments