We need to send some UTF-8 characters to a remote REST service. This service is already working correctly and is accepting UTF-8 chars from other sources correctly. When sending chars using our Flex application and the HttpService class, these chars are garbled when they arrive to the service. I'm new to Flex so I have a few questions:
1. What is the default charset used for String instances in Flex?
2. Using what charset does the HttpService send data? (POST)
3. If the answer isn't UTF-8 for these 2 questions, how can I set the charset when sending data?
As far as I know Flash always sends UTF-8 Characters, but to be sure that nothing is wrong with the data you are sending, hook up a proxy to your browser (something like Fiddler, http://www.fiddler2.com/fiddler2/ ) and check what you are really sending, maybe your service isn't awaiting UTF8 & urlencoded values.
Yes you are right, Flex was correctly sending data as UTF-8 characters. The problem was with the REST library which didn't perform decoding when it should have (that's a whole other thread...)