| Server IP : 162.214.74.102 / Your IP : 216.73.217.46 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/URI/Escape/ |
Upload File : |
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::BlankLine o: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 <tt>UNSAFE</tt>. ;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