Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 845297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:25:35+00:00 2026-05-15T06:25:35+00:00

I recently encountered a strange problem on my website. Images with æ ø and

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T06:25:36+00:00Added an answer on May 15, 2026 at 6:25 am

    This htmlentities('string', ENT_QUOTES, "UTF-8") works for me.
    For you that might be

    $img = "<img name='bilde'
         src='" . htmlentities("content/{$_SESSION['linkname']}/{$row['img']}", ENT_QUOTES, "UTF-8") . "' class='topmargin_ss leftmargin_ms rightmargin_s' width='80' height='80'>
    

    You might need to apply utf8_decode($string) to the URL, but I never needed to do that when using htmlentities with “UTF-8”.

    NOTE : This assumes that the page is already utf-8 encoded. This can be done using header('Content-Type: text/html; charset=utf-8');. And the data in the db is saved as utf-8.
    This can be done by calling mysql_set_charset('utf8'); before you start making MySQL queries; the query "SET NAMES 'utf8'" does the same.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working with MVC recently and I've encountered a strange problem while trying to
I recently encountered a problem where a value was null if accessed with Request.Form
I recently encountered an odd problem with RSACryptoServiceProvider.VerifyHash . I have a web application
Developing a heavily XML-based Java-application, I recently encountered an interesting problem on Ubuntu Linux.
I have just encountered very strange problem - my GWT app hosted on Google
I recently encountered very strange behaviour with the UIImagePickerController. On our main view we
I recently encountered a situation where my CouchDB instance used all available disk space
I recently encountered a problem with asynchronous operations in MSMQ. In .NET 2.0, 3.0
hi all: recently i'm working on make checkpoint on linux process and encountered a
I recently encountered a situation where the same Google user visit my website twice

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.