On Monday, September 10, 2012 3:52:44 PM UTC+2, Martones wrote:
>
> Hey guys, I'm aware my problem is likely not GWT related but hopefuly you 
> can point me in the right direction. All X-requests I'm making work fine 
> (French application with plenty of accents), except for the euro (€) 
> character. 
>
> Here are some facts : 
>
>    - I'm getting "?" or other unknown chars at the server side if I try 
>    to send €
>    - GWT 2.4/2.5RC1 + PHP 5 on IIS7
>    - I think I got everything UTF-8 shaped :
>       - eclipse output, host page charset, POST php page (using Notepad++ 
>       and converting to UTF8-without BOM), utf8 meta in the PHP page, my 
> database 
>       fields (even though my tests fail even if I dont insert the data into a 
>       file and just log them somewhere or str_cmp('€') them)
>    - I'm using RequestBuilder and sending my data with somthing like this 
>    : 
>       - builder.setHeader("Content-Type", 
>       "application/x-www-form-urlencoded")
>       - 
> builder.sendRequest(URL.encodeQueryString(jsonRequest.toString()),callback) 
>       where jsonRequest is my JSONObject that contains all the server needs 
> for 
>       the request processing
>    - server side I urldecode and utf8_decode (not sure if the last one is 
>    usefull)
>
> There I think its all the essential I can think of. I think I'm messing 
> with some big fact that I'm not aware of, I admit that I dont know enough 
> about encoding and headers.
>
> Many thanks for any clue (even if you slap me in a constructive maner !)
>

First, check the request payload: is the € sent as either "%E2%82%AC" or 
"\u20AC"?
If that's the case, then your problem is purely server-side, and you'd have 
better luck in a PHP forum.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/V5DabtjOTB4J.
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