I develop a facebook application using flex' s XMLSocket and Java.
When i type 'ş' character in my client side, it prints, however when i send 'ş' character,
it is printed as ??? or any kind of unpredictable characters.
I tried to change my html file's meta tag to
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
but it did not work.
On the whole how can i get rid of this problem.
Thanks.
Asked
Active
Viewed 2,172 times
2

Erdinç Kaya
- 61
- 1
- 6
-
Where do you print your characters? In Flex app or somewhere else? If it's in a Flex/Flash app and you use embedded fonts make sure that those symbols are included in font. If it's on some other HTML page make sure that you read data as UTF char/string, not as basic char - UTF character can take up to 4 bytes. P.S.: Flash Player works only with UTF-8 so there's no need to specify encoding explicitly. – Maxim Kachurovskiy Dec 28 '11 at 22:12
-
are you using the `Socket.writeUTF()/writeUTFBytes()` function? – divillysausages Dec 31 '11 at 16:59