Monotone-Parent: 2cbda748eb7f493052f1dcec5caf07d314c4cf08

Monotone-Revision: 0d409e504dc163706ba6e61412f0fdcf19d859cc

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-09-06T21:41:19
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-09-06 21:41:19 +00:00
parent d7ef24f323
commit 3edec4df42
2 changed files with 5 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ function openContactsFolder(contactsFolder, reload, idx) {
var searchValue = search["value"];
if (searchValue && searchValue.length > 0)
url += ("&search=" + search["criteria"]
+ "&value=" + escape(searchValue));
+ "&value=" + escape(searchValue.utf8encode()));
var sortAttribute = sorting["attribute"];
if (sortAttribute && sortAttribute.length > 0)
url += ("&sort=" + sorting["attribute"]

View File

@@ -235,7 +235,7 @@ String.prototype.base64encode = function () {
var chr1, chr2, chr3, enc1, enc2, enc3, enc4;
var i = 0;
var input = this._base64_utf8_encode();
var input = this.utf8encode();
while (i < input.length) {
chr1 = input.charCodeAt(i++);
@@ -289,10 +289,10 @@ String.prototype.base64decode = function() {
}
}
return output._base64_utf8_decode();
return output.utf8decode();
};
String.prototype._base64_utf8_encode = function() {
String.prototype.utf8encode = function() {
var string = this.replace(/\r\n/g,"\n");
var utftext = "";
@@ -316,7 +316,7 @@ String.prototype._base64_utf8_encode = function() {
return utftext;
};
String.prototype._base64_utf8_decode = function() {
String.prototype.utf8decode = function() {
var string = "";
var i = 0;
var c = c1 = c2 = 0;