Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   HTML (http://www.velocityreviews.com/forums/f31-html.html)
-   -   IE and links with scandinavian characters (http://www.velocityreviews.com/forums/t158680-ie-and-links-with-scandinavian-characters.html)

Kristian Niemi 07-12-2004 10:03 AM

IE and links with scandinavian characters
 
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

brucie 07-12-2004 10:16 AM

Re: IE and links with scandinavian characters
 
in post: <news:cctnlp$78c$1@nyytiset.pp.htv.fi>
Kristian Niemi <rance@mbnet.fi> 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


--
b r u c i e



Dylan Parry 07-12-2004 10:27 AM

Re: IE and links with scandinavian characters
 
Kristian Niemi wrote:

> 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 :)

--
Dylan Parry
http://www.webpageworkshop.co.uk - FREE Web tutorials and references

Daniel R. Tobias 07-12-2004 07:01 PM

Re: IE and links with scandinavian characters
 
Kristian Niemi <rance@mbnet.fi> wrote in message news:<cctnlp$78c$1@nyytiset.pp.htv.fi>...
> 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.

--
Dan


All times are GMT. The time now is 11:35 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57