lib/net/ntlm/encode_util.rb in rubyntlm-0.4.0 vs lib/net/ntlm/encode_util.rb in rubyntlm-0.5.0
- old
+ new
@@ -22,11 +22,11 @@
def self.swap16(str)
str.unpack("v*").pack("n*")
end
else # Use native 1.9 string encoding functions
- # Decode a UTF16 string to a ASCII string
- # @param [String] str The string to convert
+ # Decode a UTF16 string to a ASCII string
+ # @param [String] str The string to convert
def self.decode_utf16le(str)
str.force_encoding(Encoding::UTF_16LE)
str.encode(Encoding::UTF_8, Encoding::UTF_16LE).force_encoding('UTF-8')
end