Hi,
all the files I've got on my web server are encoded in UTF-8.
I tried to upload a file named "&é'(-è_çà).jpg" and I get a file named "&é'(-è_çà )..jpg".
How can I fix that probleme please ?
I've got Xupload pro 2.4.
Best regards.
XUpload - utf8 problem
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
Hi,
Maybe let me provide more information to your for a check,
for the upload form, I have already added accept-charset="UTF-8" in <form>, and the html encoding is UTF-8.
I have tried to use another upload script "uber-uploader" in the same server before, all "UTF-8" files can upload without any character display problem, so I think there has some problem on the xupload, rather than the server filesystem problem.
And I found the most strange point is, if I input some "UTF-8" characters in the file description field, and upload, the "UTF-8" file name can retrieve in post.php without problem, but if I let the description field to empty, the "UTF-8" file name will can't display properly in post.php.
Maybe let me provide more information to your for a check,
for the upload form, I have already added accept-charset="UTF-8" in <form>, and the html encoding is UTF-8.
I have tried to use another upload script "uber-uploader" in the same server before, all "UTF-8" files can upload without any character display problem, so I think there has some problem on the xupload, rather than the server filesystem problem.
And I found the most strange point is, if I input some "UTF-8" characters in the file description field, and upload, the "UTF-8" file name can retrieve in post.php without problem, but if I let the description field to empty, the "UTF-8" file name will can't display properly in post.php.
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
Clear thing out: you have problems with utf-8 with saved files on disk OR with POST data sent to url_post?
Here goes solution for url_post data:
in upload.cgi replace this code
with
Here goes solution for url_post data:
in upload.cgi replace this code
Code: Select all
print"Content-type: text/html\n\n";
print"<HTML><BODY><Form name='F1' action='$url_post' target='_parent' method='POST'>";
Code: Select all
print"Content-type: text/html; charset=UTF-8\n\n";
print qq{<HTML><HEAD><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"></HEAD><BODY><Form name='F1' action='$url_post' target='_parent' method='POST'>};