[code] <cript>
fonctionnchinesefromutf8url (strutf8)
{
VarbStr = "";
varNoffset = 0;
// ProcessingPointonstrutf8
if (strutf8 == "")
retour"";
strutf8 = strutf8.tolowercase ();
noffset = strutf8.indexof ("% e");
if (noffset == - 1)
returnstrutf8;
tandis que (noffset! = - 1)
{
bstr + = strutf8.substr (0, noffset);
strutf8 = strutf8.substr (noffset, strutf8.length-offset);
if (strutf8 == "" ¦¦trutf8.length <9) // badString
returnBstr;
bstr + = utf8CodetochineSechar (strutf8.substr (0,9));
strutf8 = strutf8.substr (9, strutf8.length-9);
noffset = strutf8.indexof ("% e");