Page 1 of 1

Special Characters in Chat Filter

Posted: 10 Feb 2010, 02:53
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?

dots in chat filter bad words

Posted: 12 Feb 2010, 19:37
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?

Posted: 23 Feb 2010, 21:42
by willypow
Could someone please explain what is happening with the message encoding? How does one un-do the encoding of special characters?