Jsp File Browser

Task list for Project:

Please ensure that your browser has cookies enabled if you want this software to work properly...

Register as a new user

Task #31 — Fail to display chinese/japanese file name in ext3 file system

Attached to Project — Jsp File Browser

Opened by Johnson Lee (unknow1900) - 2 Feb 2007

Task Type Bug Report Severity Medium
Category User Interface Reported Version 1.2
Status Unconfirmed Due in Version Undecided
Assigned To No-one Percent Complete 0% complete
Operating System Linux
Details The code will be show as "?" instead of chinese/japanese charactor (UTF-8 File naming)

It is because function conv2Html make charactor corrupt.
I suggesting change code from
static String conv2Html(int i) {
if (i == '&') return "&";
else if (i == '<') return "&lt;";
else if (i == '>') return "&gt;";
else if (i == '"') return "&quot;";
else return "" + (char) i;
}

to

static String conv2Html(int i) {
if (i == '&') return "&amp;";
else if (i == '<') return "&lt;";
else if (i == '>') return "&gt;";
else if (i == '"') return "&quot;";
else if (i > 255) return "&#" + c + ";";
else return "" + (char) i;
}

Comments (0) | Attachments (0) | Related Tasks (0/0) | Notifications (1)