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].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to