European signs in img src problem

Posted by Rakoon on Stack Overflow See other posts from Stack Overflow or by Rakoon
Published on 2010-06-03T10:27:43Z Indexed on 2010/06/03 10:34 UTC
Read the original article Hit count: 223

Filed under:
|
|

Hey.

I recently encountered a strange problem on my website. Images with æ ø and å in them (Western European signs) Won't display.

The character encoding on all sites is "Iso-8859-1" I can print æ ø and å on the page without problems. If I right click the "broken image" and choose properties, it displays the filename with the european signs. (/admin/content/galleri/å.jpg)

the code for img looks like this

<img name='bilde'
     src='content/{$_SESSION["linkname"]}/{$row["img"]}'
     class='topmargin_ss leftmargin_ms rightmargin_s'
     width='80' height='80'>

(Wasn't allowed to post images so the code is without starting and ending brackets)

Made 4 files: z.jpg æ.jpg ø.jpg å.jpg

Only z.jpg shows up, they are the exact same jpg. The images are uploaded using php code, which works, uploads to the right directory and has no problem with the european signs.

Does anybody know what could be causing this?

© Stack Overflow or respective owner

Related posts about php

Related posts about html