A + is automatically converted to a space.If you want to use base64 either
convert it client side or indeed urlencode it so that it can only be
interpreted as it is intended and no 'intelligent' interpretation is done

Regards,

Serge Fonville

On Wed, Oct 29, 2008 at 2:01 PM, Jeng Yu <[EMAIL PROTECTED]> wrote:

> Hi Friends,
>
> I am seeing a problem with my servlet running in
> Tomcat and I'm a bit baffled.
>
> When I post a base64 encoded string that has a "+"
> character in it from a client to my servlet (via
> form post), the string becomes disjointed at "+"
> character making  it two strings. That is, the "+"
> character gets replaced by a " ", which makes the
> string two base64 encoded strings at the servlet
> end.
>
> I've had to do an ugly hack of scanning the base64
> encoded string first to replace " " with "+" before
> I can decode the original string properly in the
> servlet. There's gotta be a better way!
>
> Certainly, I'm missing something here. What is it,
> Urlencode it? I thought that is implicitly done.
>
> Thanks,
>
> Jeng
>
>
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to