https://bugzilla.wikimedia.org/show_bug.cgi?id=30390
--- Comment #6 from Bawolff <[email protected]> 2011-11-10 18:06:51 UTC --- >Hello, >Does decodeURIComponent handle unicode correctly? I will modify my patch to use >this. Yes, it does. Perhaps something like decodeURIComponent(theSuggestedName).replace( /[\]\[\{\}\|#<>:]/g, '' ); (I suppose colon can be valid in certain configs, but they seem few - mostly that file namespace repo extension) (although, you do have to check for exceptions with decodeURIComponent, in case of invalid utf-8 - aka decodeURIComponent("%C4") will throw an exception). -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
