Vault error name of file with á, é,...

Upload works ok but when the file name has a character like á é í ó ú ñ,… the file name generate with strange simbol.

EJ.: boletín.txt -> boletﲮtxt

How can i solve this?

Thank you.

What is your server-side language?

You should correctly specify page encoding and maybe process server-side input for this encoding (depends on the language).

clasic asp

which encoding ?

In which page I have to put these? In UploadFile.asp?

I try all the convinatios of this parameters in the page UploadFile.asp but isn´t work fine:

'Session.Codepage=65001
Session.Codepage=1252
'Response.ContentType = "text/xml; charset=utf-8"
Response.ContentType = "text/xml; charset=iso-8859-1"

Any idea?

Actually, we do not support legacy ASP officially, but let’s try to help you with it.

It’s not related to vault code, it’s a basic concept of asp/html you should understand:

  1. set the correct encoding for “index.htm” page which will contain vault control; this code page will be used by your browser when it sends file name and other parameters. Set utf-8 for example.

  2. set the same encoding for UploadHandler script request handler. Please read the ASP docs how to do it correctly. This script will read file name from the request, so it should know what encoding it is.

Thank you very much!

Now it works ok!

I put Response.ContentType = “text/html; charset=utf-8” in the index.html and in UploadFile.asp

I’m having the same problem. I already tried the proposed solution with no luck.

Can you help me in telling me what lines o line do I have to add in the aspx file.

Thanks for your help.

Something like this:

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=WINDOWS-1252">