Thanks a lot! This work correctly in the deployed version. I made a tiny test here: writing a module: https://www.mediawiki.org/wiki/Module:StringLength using a module: https://www.mediawiki.org/wiki/User:Amire80/Scribunto
-- Amir
2013/2/16 Chad innocentkiller@gmail.com:
On Sat, Feb 16, 2013 at 12:06 AM, Amir E. Aharoni amir.aharoni@mail.huji.ac.il wrote:
Is there any way to handle Unicode strings in the version that is going to be deployed? For example, things like getting the length of the string "François" as 8 rather than 9?
If not, is there any plan to have this ability any time soon?
Yes, a library has been written for Scribunto called "ustring" to handle unicode. We've actually got docs for this (and a couple of other libraries) available on mw.org[0].
-Chad
[0] https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l