#47 Bad UTF-8 characters due to msgEscape function

v1.0 (example)
open
nobody
3
2008-12-10
2007-09-17
Joel Savignon
No

In groupchat_modifylist.html, one parameter is unscaped. This parameter has been encoded using the msgEscape function of shared.js. When the string contains some UTF-8 special characters (for example accents), they are not correctly encoded and badly displayed (Firefox only).

I've replaced the msgEscape code by return escape(msg) and it works correctly. The question is why not just using escape instead of msgEscape?

Discussion

  • Logged In: YES
    user_id=31329
    Originator: NO

    Good question. I guess the function exists for some historic reason. It's not being used very much any more and I'm pretty sure that all occurences if it should be replaced with 'escape'. Thanks for reporting!

     
    • priority: 5 --> 3