2
J'ai une URL comme http://example.com/tag/София/new.json
et je veux faire une demande GET avec HTTParty. Quand je fais:Comment utiliser HTTParty avec l'encodage UTF-8?
HTTPArty.get "http://example.com/tag/София/new.json
je reçois:
URI::InvalidURIError at/
bad URI(is not URI?): link here
Toute idée comment gérer cette
Cou ld vous me dites comment vous avez réussi à convertir "София" en "% D0% A1% D0% BE% D1% 84% D0% B8% D1% 8F"? – tstyle
@tstyle probablement avec 'URI.escape()', voir http://ruby-doc.org/stdlib-2.3.1/libdoc/uri/rdoc/URI/Escape.html – Spone
merci, sauvé ma journée – Maysam