Forum: Ruby on Rails utf-8 encoding in URL params

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
143e5dd5b25ff24bd19c965aafa2d63d?d=identicon&s=25 Joe Yang (ssyangy)
on 2008-10-12 08:54
(Received via mailing list)
Hi,


I'm accessing a web service API. This API is somehow like convert
input string to a graph.
this API has a text params. In the specification, this params should
be UTF-8 encoded.
what shall I do to ensure of this? or just pass the string to it?

The reason I'm asking is, when I pass some Chinese string to that API,
some string works fine, some string result in "messy code" in the
generated graph.

Any idea?


Cheers,
Joe
This topic is locked and can not be replied to.