U:RDoc::AnyMethod[iI" escape:EFI"URI::Escape#escape;TF: publico:RDoc::Markup::Document: @parts[S:RDoc::Markup::Heading: leveli: textI" Synopsis;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I" URI.escape(str [, unsafe]) ;T: @format0S; ; i; I" Args;T@ o:RDoc::Markup::List: @type: NOTE: @items[o:RDoc::Markup::ListItem: @label[I" +str+;T; [o:RDoc::Markup::Paragraph; [I"String to replaces in.;To;;[I" +unsafe+;T; [o;; [I"GRegexp that matches all symbols that must be replaced with codes. ;TI"&By default uses UNSAFE. ;TI"CWhen this argument is a String, it represents a character set.;T@ S; ; i; I"Description;T@ o;; [I"DEscapes the string, replacing all unsafe characters with codes.;T@ o;; [I"BThis method is obsolete and should not be used. Instead, use ;TI"FCGI.escape, URI.encode_www_form or URI.encode_www_form_component ;TI")depending on your specific use case.;T@ S; ; i; I" Usage;T@ o;; [I"require 'uri' ;TI" ;TI":enc_uri = URI.escape("http://example.com/?a=\11\15") ;TI"p enc_uri ;TI")# => "http://example.com/?a=%09%0D" ;TI" ;TI"p URI.unescape(enc_uri) ;TI"'# => "http://example.com/?a=\t\r" ;TI" ;TI" p URI.escape("@?@!", "!?") ;TI"# => "@%3F@%21";T;0: @fileI"lib/uri/common.rb;T:0@omit_headings_from_table_of_contents_below000[[I" encode;Fo;; [;@>;0I" (*arg);T@>FI" Escape;FcRDoc::NormalModule00