Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (15 sloc) 0.474 kb
# encoding: utf-8
require 'abstract_unit'
require 'uri'
require 'active_support/core_ext/uri'
class URIExtTest < ActiveSupport::TestCase
def test_uri_decode_handle_multibyte
str = "\xE6\x97\xA5\xE6\x9C\xAC\xE8\xAA\x9E" # Ni-ho-nn-go in UTF-8, means Japanese.
if URI.const_defined?(:Parser)
parser = URI::Parser.new
assert_equal str, parser.unescape(parser.escape(str))
else
assert_equal str, URI.unescape(URI.escape(str))
end
end
end
Jump to Line
Something went wrong with that request. Please try again.