diff --git a/lib/xsd/charset.rb b/lib/xsd/charset.rb index e0241fdebc..362f13edfc 100644 --- a/lib/xsd/charset.rb +++ b/lib/xsd/charset.rb @@ -103,7 +103,7 @@ public end def Charset.charset_str(label) - CharsetMap.key(label.downcase) + CharsetMap.index(label.downcase) end # us_ascii = '[\x00-\x7F]'