Skip to content

Instantly share code, notes, and snippets.

@rrgroovy
Created October 12, 2011 11:53
Show Gist options
  • Save rrgroovy/1281028 to your computer and use it in GitHub Desktop.
Save rrgroovy/1281028 to your computer and use it in GitHub Desktop.
URIエンコード/デコード
def origin = 'あいうえお'
def encoded = '%E3%81%82%E3%81%84%E3%81%86%E3%81%88%E3%81%8A'
assert URLEncoder.encode(origin, 'UTF-8') == encoded
assert URLDecoder.decode(encoded, 'UTF-8') == origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment