lib/soap/generator.rb in rubyjedi-soap4r-1.5.8.01 vs lib/soap/generator.rb in rubyjedi-soap4r-1.5.8.20100616125722
- old
+ new
@@ -267,11 +267,10 @@
str.gsub(@encode_char_regexp) { |c| EncodeMap[c] }
end
end
def get_encode_char_regexp
- ENCODE_CHAR_REGEXP[XSD::Charset.encoding] ||=
- Regexp.new("[#{EncodeMap.keys.join}]")
+ ENCODE_CHAR_REGEXP[XSD::Charset.encoding] ||= Regexp.new("[#{EncodeMap.keys.join}]", nil, (RUBY_VERSION.to_f >= 1.9) ? 'n' : XSD::Charset.encoding) # RubyJedi: compatible with Ruby 1.8.6 and above
end
def find_handler(encodingstyle)
unless @handlers.key?(encodingstyle)
factory = SOAP::EncodingStyle::Handler.handler(encodingstyle)