Hi,

I'm reading a file using file chose dialog (by GWT FileUpload).. Therefore 
on the client side I created a form that has the content of the file as a 
String in its SubmitCompleteEvent.

Problem: already on the client side (before sending the content to the 
server), special characters like '&' are incorrectly read as eg '&'. So 
somehow replaced with the HTML character implementation.

Question: Why, and more important: how can I prevent this? If I can't 
prevent this, this would mean I'd have to run a regex against all special 
characters the could occur in a file, and replace their html 
representation. That would be kind of senseless...

 @UiField FormPanel uploadForm;

 @UiHandler("uploadForm")
    void onSubmitForm(SubmitCompleteEvent evt) {  
    Sysout(evt.getResults()); //prints: &
 }


Thanks

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


Reply via email to