Ticket #148 (closed defect: fixed)

Opened 12 months ago

Last modified 12 months ago

URI::InvalidURIError for ñ, á, ", ...

Reported by: hecpeare Owned by: why
Priority: major Milestone:
Component: bin/camping Version:
Keywords: Cc:

Description

Some characters such as <ñ>, <á> or <"> are invalid in the URI:

Error: URI::InvalidURIError bad URI(is not URI?)

Examples: http://seekr.es/%22camping%20framework%22 http://seekr.es/rae/a%C3%B1o

App code: http://svn.fav2fav.net/seekr/trunk/seekr.rb

Change History

in reply to: ↑ description   Changed 12 months ago by hecpeare

  • status changed from new to closed
  • resolution set to fixed

I answer myself:

def get(key)

require 'cgi' key=CGI.escape(key)

... end

Replying to hecpeare:

Some characters such as <ñ>, <á> or <"> are invalid in the URI: Error: URI::InvalidURIError bad URI(is not URI?) Examples: http://seekr.es/%22camping%20framework%22 http://seekr.es/rae/a%C3%B1o App code: http://svn.fav2fav.net/seekr/trunk/seekr.rb

Note: See TracTickets for help on using tickets.