Re: trapped in ASCII encoding

Piers Harding
Thu, 05 May 2005 17:46:58 -0000

Perhaps the data could be URI encoded?

Cheers,

Piers Harding.



On Thu, May 05, 2005 at 08:10:02PM +0300, Ioan Bizau jr.
wrote:
> Why not send every Java char as %xxxx and parse it in Ruby? Then you can
> just use ASCII.
>
> Gábor SEBESTYÉN wrote:
> >Guide me to the light please!
> >
> >I have a Java based client that sends key-value information pairs
> >wrapped in HTTP Post to Rails server. Works fine except some beyond
> >ascii characters. You may know non-ascii characters will be delivered
> >in %xx hex format IF their codes are not greater than 255. It seems
> >beyond that value characters are converted to ? mark.
> >
> >HTTP Gurus help me how to deliver non-latin encoded messages via  HTTP.
> >If I set content encoding to UTF-8 Rails will receive it  uncoverted so
> >I will get rubbish instead of correctly decoded UTF-8  strings.
> >
> >Thanks in advance!
> >
> >Gábor
> >
> >_______________________________________________
> >Rails mailing list
> >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> >http://lists.rubyonrails.org/mailman/listinfo/rails
> >
> >
> >
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails

--
http://www.piersharding.com
http://raa.ruby-lang.org/search.rhtml?search=piers&search_target=owner
http://search.cpan.org/~piers/



_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org