Avatar of miyahira
miyahiraFlag for Peru

asked on 

Can't open documents (via browser) that their names contain special characters

Hello,

We are are running IIS 6.0 on Windows Server 2003.
The problem is that it's not possible to open via web browser any document (ms-word or pdf or excel) that its name contains spanish special characters (accents). The documents are storage on a virtual directory of the IIS.

For instance, via web browser it's not possible to open this document, because the name of the file contains character "ó":

http://MyServer/MyVirtualDirectory/Documents/Inscripción.doc

When trying to open the file, on the web browser it's displayed: "The page cannot be found"

But it is possible to open this document, which its name has no special character:

http://MyServer/MyVirtualDirectory/Documents/Inscripcion.doc

What kind of setting is missing on the IIS or Windows Server 2003? Has anyone seen this problem before?

Thank you!

Microsoft IIS Web ServerWindows Server 2003

Avatar of undefined
Last Comment
ee_auto
Avatar of kjanicke
kjanicke
Flag of United States of America image

Do you need to put a meta tag somewhere to provide support for special characters?

such as

    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />

The html code for small letter Ó is &#243;

and your name may actually look something like this in a URL
Inscripci&#37;25C3&#37;25B3n

If this problem is isolated to a single workstation, maybe that workstation cannot translate the characters.

I hope somebody else chimes in with some suggestions.  I used to support a web site with arabic and english so you have peaked my curiosity.

Avatar of miyahira
miyahira
Flag of Peru image

ASKER

Thanks for your response, kjanicke, but it's nothing to do with meta tag or workstations. With our former server (WS2003 and IIS6 as well) we had no problem opening doc files with "á", "ó", "é", "í" or "ú"  characters contained in their names. But we have changed server and now we have this problem.

At home, I tried to open  
http://MyServer/MyVirtualDirectory/Documents/Inscripción.doc

and still no success
Avatar of miyahira
miyahira
Flag of Peru image

ASKER

Wait... it's possible the thing about meta-tag... I saw this tag on the  html code of the page that tries to open the doc file:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<HTML><HEAD><TITLE>The page cannot be found</TITLE>

<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">

As you said, maybe something has to be set up as:

charset=utf-8

Question: Where?


Avatar of kjanicke
kjanicke
Flag of United States of America image

META tags should be placed in the head of the HTML document, between the <HEAD> and </HEAD> tags.  I understoof the HTTP-EQUIV allows you to extend the character set beyond the default.  Netscape would load the character set before displaying the page.
Avatar of miyahira
miyahira
Flag of Peru image

ASKER

You've helped me a lot, kjanicke. My question would be where to set up UTF-8 format in the IIS
Avatar of Praveen DM
Praveen DM
Flag of India image

Avatar of kjanicke
kjanicke
Flag of United States of America image

Greetings:

Have you been able to get your IIS configured to support the extra character set?
Avatar of miyahira
miyahira
Flag of Peru image

ASKER

Hello,

Sorry for the late response. I couldn't find any information about configuring UTF-8 format in IIS.

I solved the problem but in this way: Since the path and name of the file to open came from an Oracle database query, I URL encoded the path and name from the query itself. So, if the filename contains any special characters, function utl_url.ESCAPE will deal with it.

SELECT   utl_url.ESCAPE (   '../Documents/' || a.file_name ) AS url_file_name
         FROM     tbl_documents a

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of ee_auto
ee_auto

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Windows Server 2003
Windows Server 2003

Windows Server 2003 was based on Windows XP and was released in four editions: Web, Standard, Enterprise and Datacenter. It also had derivative versions for clusters, storage and Microsoft’s Small Business Server. Important upgrades included integrating Internet Information Services (IIS), improvements to Active Directory (AD) and Group Policy (GP), and the migration to Automated System Recovery (ASR).

129K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo