Well, it seams it's ok :)
If GWT automatically encodes % when setting the history token, well,
it will also decode it, that means that i can use URL class for
encoding my text, and decoding it when retrieving the history token.
(using encodeComponent and decodeComponent methods, for the "/"
character)


On Aug 17, 6:37 pm, Andrei Cosmin Fifiiţă <[email protected]>
wrote:
> Well, this is just stupid... this means i cannot encode http:// in my url ?
> well, GMAIL can, so what;s the deal ? i don;t think this is a bug it seams
> like am amateur's mistake.
>
> On 17 August 2010 18:31, Thomas Broyer <[email protected]> wrote:
>
>
>
>
>
> > On 17 août, 17:07, Ice13ill <[email protected]> wrote:
> > > I'm trying to set a text in history token containing the "/" character
> > > but i want to encode it before setting the token
> > > For exameple : "2/12/a" to become "2%2F12%2Fa"
> > > the problem is that GWT also converts automatically % in %25. thus
> > > History.newItem(URL.encodeComponent(text)) does not set the correct
> > > text.
> > > so how do i set in the history item the text "%2F" ?
>
> > You just cannot, at least using the stock History class in its current
> > state (but you could re-implement –copy/paste– on your own to overcome
> > this "limitation").
> > I guess this is because some browsers would give you the same thing
> > for both "/" and "%2F"; or maybe just that History is actually
> > "broken" (or let's rather say there's room for improvement, by
> > implementing it differently)
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<google-web-toolkit%2Bunsubs 
> > [email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to