IE and links with scandinavian characters

K

Kristian Niemi

Hi,

I'm trying to build a dynamic site for viewing/storing images and files
with PHP (and MySQL). The problem is, that some files and images are
saved with filenames which include scandinavian characters (åäö).
Netscape-based browsers don't seem to mind, opening files referred
to by links containing scand. char., but Internet Explorer, however,
does mind, doesn't follow the links. I tried &code; but that didn't help
me out. Is there a workaround? (Other than renaming the files...)


Kristian
 
B

brucie

in post: <
Kristian Niemi said:
Hi,
g'day

The problem is, that some files and images are
saved with filenames which include scandinavian characters (åäö).

rename them.
Is there a workaround? (Other than renaming the files...)

assuming people are uploading the files for your site to display them
you should be renaming them on receipt anyway so a) you don't have
problems like you've outlined above and b) people don't
send-you-or-your-other-visitors-a-rude-message.jpg
 
D

Dylan Parry

Kristian said:
I'm trying to build a dynamic site for viewing/storing images and files
with PHP (and MySQL). The problem is, that some files and images are
saved with filenames which include scandinavian characters (åäö).

I'd suggest simply replacing the Scandinavian characters with their
closest equivalent, ie. å->a, ö->o, etc. Okay, the filenames might not
be pronounced the same anymore, but I have a feeling that most native
speakers would know what it meant :)
 
D

Daniel R. Tobias

Kristian Niemi said:
I'm trying to build a dynamic site for viewing/storing images and files
with PHP (and MySQL). The problem is, that some files and images are
saved with filenames which include scandinavian characters (åäö).
Netscape-based browsers don't seem to mind, opening files referred
to by links containing scand. char., but Internet Explorer, however,
does mind, doesn't follow the links. I tried &code; but that didn't help
me out. Is there a workaround? (Other than renaming the files...)

Non-ASCII characters aren't valid in URLs (though there are attempts
underway to define new standards for internationalized identifiers
that do allow such characters). It's best, as somebody else said, to
use filenames that don't contain such problematic characters, but if
you can't avoid it, they must be encoded in percent-sign syntax (%XX,
where a two-digit hexadecimal code is used). There's unfortunately
some ambiguity about just what character encoding such encoded
characters are actually in, however.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,438
Messages
2,571,699
Members
48,796
Latest member
Greg L.
Top