Special Characters in Chat Filter

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

Post Reply
willypow
Posts: 66
Joined: 19 Jul 2008, 16:23
Location: Greenbrae, CA
Contact:

Special Characters in Chat Filter

Post by willypow »

We have a custom chat filter which makes use of a third party to filter the message string. When I retrieve the message parameter in the PubMsg event (ieo.getParam("msg"), if the chat contains special characters it will be 'escaped' to some ascii coding or something. For example, the apostrophe appears as '.

Is there some easy way to translate that back to the apostrophe character, and if I do so, will it cause a problem when I dispatch the message after handling the event?
Boing
Posts: 59
Joined: 11 Apr 2008, 14:57

dots in chat filter bad words

Post by Boing »

Does not really have to do with the preceding post, but the topic matches nicely...

I would like to filter URLs so I added "http", ".com" and some others as bad words. Unfortunately the ones starting with a "." do not seem to work.

Is there workaround?
willypow
Posts: 66
Joined: 19 Jul 2008, 16:23
Location: Greenbrae, CA
Contact:

Post by willypow »

Could someone please explain what is happening with the message encoding? How does one un-do the encoding of special characters?
Post Reply