M
mlv2312
Hi,
I am experiencing problems with my href links containing filenames
with portuguese chars. For example, 'FUNDAMENTOS P REGULAMENTAÇÃO DA
CIDE.tif'.
However, if I open the listing files JSP on tomcat and click on the
right link, the same file opens. Then, I opened the source html code
generated for the listing files JSP, and I realized that the filename
was encoded as following:
'FUNDAMENTOS%20P%20REGULAMENTA%C3%87%C3%83O%20DA%20CIDE.tif'
I tried to encode the filename using the javascript function
'escape()', but the result was different:
'FUNDAMENTOS%20P%20REGULAMENTA%C7%C3O%20DA%20CIDE.tif'
I tried URLEncoder.encode, but the result was not the same...
Does anyone know which algorithm bea/tomcat use to encode special
chars?
Where can I find the appropriate information?
Best regards!
Marcelo
I am experiencing problems with my href links containing filenames
with portuguese chars. For example, 'FUNDAMENTOS P REGULAMENTAÇÃO DA
CIDE.tif'.
However, if I open the listing files JSP on tomcat and click on the
right link, the same file opens. Then, I opened the source html code
generated for the listing files JSP, and I realized that the filename
was encoded as following:
'FUNDAMENTOS%20P%20REGULAMENTA%C3%87%C3%83O%20DA%20CIDE.tif'
I tried to encode the filename using the javascript function
'escape()', but the result was different:
'FUNDAMENTOS%20P%20REGULAMENTA%C7%C3O%20DA%20CIDE.tif'
I tried URLEncoder.encode, but the result was not the same...
Does anyone know which algorithm bea/tomcat use to encode special
chars?
Where can I find the appropriate information?
Best regards!
Marcelo