Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > IE and links with scandinavian characters

Reply
Thread Tools

IE and links with scandinavian characters

 
 
Kristian Niemi
Guest
Posts: n/a
 
      07-12-2004
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
 
Reply With Quote
 
 
 
 
brucie
Guest
Posts: n/a
 
      07-12-2004
in post: <news:cctnlp$78c$>
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


--
b r u c i e


 
Reply With Quote
 
 
 
 
Dylan Parry
Guest
Posts: n/a
 
      07-12-2004
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
 
Reply With Quote
 
Daniel R. Tobias
Guest
Posts: n/a
 
      07-12-2004
Kristian Niemi <> wrote in message news:<cctnlp$78c$>...
> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Python unicode utf-8 characters and MySQL unicode utf-8 characters Grzegorz ¦liwiñski Python 2 01-19-2011 07:31 AM
Remove only special characters and junk characters from a file rvino Perl 0 08-14-2007 07:23 AM
pointers to constant characters and constant pointers to characters sam_cit@yahoo.co.in C Programming 4 12-14-2006 11:10 PM
UTF-8 / German, Scandinavian letters - is it really this difficult?? Linux & Windows XP Mike Dee Python 12 02-23-2005 08:07 AM
Adding a delimiter inbetween number characters and letter characters toomanyjoes@mail.utexas.edu Perl Misc 54 01-16-2005 04:07 PM



Advertisments