Re: trapped in ASCII encoding

Ioan Bizau jr.
Thu, 05 May 2005 17:10:02 -0000

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
>
>
>