Help for this page

Select Code to Download


  1. or download this
    perl -MURI::Escape -le 'print uri_unescape("%C2%A3")'
    £
    
    perl -MCGI=param -le 'print param("q")' "q=%C2%A3"
    £
    
  2. or download this
    plackup -e 'use URI::Escape; sub { [200, ["Content-Type" => "text/html
    +; charset=utf-8"], [ uri_unescape("%C2%A3") ]]}'
    HTTP::Server::PSGI: Accepting connections at http://0:5000/
    -- 
    £
    
  3. or download this
    plackup -e 'use Encode; use URI::Escape; sub { [200, ["Content-Type" =
    +> "text/html; charset=utf-8"], [ decode("UTF-8", uri_unescape("%C2%A3
    +")) ]]}'
    HTTP::Server::PSGI: Accepting connections at http://0:5000/
    --
    Error: Body must be bytes and should not contain wide characters (UTF-
    +8 strings) at /usr/local/lib/perl5/site_perl/5.14.0/Plack/Middleware/
    +Lint.pm line 153
    
  4. or download this
    plackup -e 'use Encode; use URI::Escape; sub { [200, ["Content-Type" =
    +> "text/html; charset=utf-8"], [ encode("UTF-8", uri_unescape("%C2%A3
    +")) ]]}'
    HTTP::Server::PSGI: Accepting connections at http://0:5000/
    --
    £
    
  5. or download this
    perl -MCGI=param,-utf8 -le 'print param("q")' "q=%C2%A3"
    ?
    
  6. or download this
    perl -CO -MCGI=param,-utf8 -le 'print param("q")' "q=%C2%A3"
    £
    
  7. or download this
    perl -MEncode -MCGI=param,-utf8 -le 'print encode("UTF-8", param("q"))
    +' "q=%C2%A3"
    £