How to solve Flex utf-8 encoding

2.2k Views Asked by At

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.

1

There are 1 best solutions below

0
Marc-André Weibezahn On

Use encodeURIComponent(yourstring), this might do the trick.