[Slogger] non ascii characters in Slogger logs
swisses
swisses at gmail.com
Thu Feb 23 10:41:58 EST 2006
Hello,
Here is temporary solution for title problem in log files
in sloggerPrefs.js:
--------------------------------
//........................
function sloggerSetVar() {
//........................
else {
if (val == undefined) {
val = "";
}
//+++++start
if (name == "title") {
val = encodeURIComponent(val);
}
//+++++end
var cmd = "prefs.set" + vartype + "Pref(name, val)";
eval(cmd);
}
}
}
//........................
function sloggerGetVar(name) {
//........................
eval(cmd);
//+++++start
if(name == "title") {
val = decodeURIComponent(val);
}
//+++++end
return val;
}
--------------------------------
You have to modify log file header encoding to UTF-8:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="slogger.xsl"?>
<sloggerLogFile>
Regards,
Dmitry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unicode.gif
Type: image/gif
Size: 7753 bytes
Desc: not available
Url : http://mozdev.org/pipermail/slogger/attachments/20060223/000c2ce0/unicode.gif
More information about the Slogger
mailing list