In my implementation I am able to chat using unicode test such as "埃里克"
Receiver: (client-side)
onRawData: function(raw) {
this.fireEvent('onChatLog', {'w': '', 't':
unescape(decodeURI(raw.data.msg)), 'b': true});
},
onChatLog event what do is to add the text gotten into a "div"
If you are storing into MySQL before send back the test with APE, you
should take a look if the table storing the text supports unicode (utf-8)
On 12/21/2011 09:23 AM, oferbar wrote:
> Hi,
>
> We've got a system based on Ape 1.0 for chat.
>
> Now I'm trying to add some Unicode language support for Hebrew,
> Korean, etc.
>
> However, on the server I have a JavaScript command that receives a
> message and saves that to a MySql database.
> The command get a Hebrew string like this: "%u059e%u0592", but when I
> execute unescape(string) I get gibberish characters instead of the
> Hebrew ones.
>
> I suspect that APE doesn't support Unicode string.
>
> Is this correct?
>
> I also tried to run a build of APE server, and I didn't see that the
> compilation flag UNICODE was included on any compile line, which led
> me to believe I need to rebuild APE with Unicode support.
>
> Any help on that would be appreciated!
>
> Thx
>
> Ofer
>
--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
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/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/