key=Dior 迪奥 +3348900998223 如何转换为 key=Dior%B5%CF%B0%C2%2B3348900998223
看这个: http://www.ruby-doc.org/stdlib-2.0/libdoc/uri/rdoc/URI/Escape.html
先转为 gbk 编码,然后再 escape.
CGI::escape(str.encode(Encoding::GBK))
谢谢
URI::escape(url)