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

  • Home
  • SEARCH
  • 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 8344639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:26:05+00:00 2026-06-09T06:26:05+00:00

Im trying to figure out why nginx is trying load some static images with

  • 0

Im trying to figure out why nginx is trying load some static images with the wrong encoding. E.g.:

From the error.log:

2012/08/08 21:14:46 [error] 17968#0: *71 open()
“/home/www/mydomain.com/WEB-INF/images/productimage/image-ø.png”
failed (2: No such file or directory), client: x.x.x.x, server:
http://www.mydomain.com, request: “GET /images/productimage/image-%C3%B8.png
HTTP/1.1”, host: “www.mydomain.com”, referrer:
“http://www.mydomain.com/”

In my nginx.conf file i added the following;

source_charset utf-8;
charset utf-8;

But unfortunately, that didnt solve it.

My vhost config file uses the following to serve the image files;

    location /images/
    {
            alias /home/www/mydomain.com/WEB-INF/images/;
            expires 15d;
    }

I’m using ubuntu, with the LANG environment variables set as such;

export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8

Any clue ? Thanks !

  • 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-06-09T06:26:09+00:00Added an answer on June 9, 2026 at 6:26 am

    Percent-encoding in URIs is really two steps of encoding, not one. Ideally, first text is encoded as UTF-8, and the UTF-8 text is “percent-encoded” to be used in a URI, producing a result like this:

    /images/productimage/image-%C3%B8.png
    

    Can you confirm that this URI has been encoded properly? If you start with the character you want, and then encode it as UTF-8 and then percent-encode it, is the result %C3%B8? You can manually generate a percent-encoded script like this:

     $perl -MCGI -e 'print CGI::escape("Hello World")."\n";'
     Hello%20World
    

    Another way to put it: Are your sure the problem is in the decoding by Nginx, and not the encoding? Check the encoding of the HTML page that contains the image reference. Review both the HTTP headers and the meta tags. Make sure it explicitly declares itself as UTF-8. Otherwise, that could be cause for the browser to mis-interpret the reference.

    You can likewise manually test the decoding process, like this:

     perl -MCGI -e 'print CGI::unescape("/images/productimage/image-%C3%B8.png")."\n";'
     /images/productimage/image-ø.png
    

    I’ve written a detailed post about percent-encoding with Perl, if that’s of interest as a reference.

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

Sidebar

Related Questions

Trying to figure out a way where I can pass some data/fields from a
Trying to figure out what I'm doing wrong when trying to put $(this) in
Im trying to figure out how i would get attributes/propertys from an object. locations.rb
Trying to figure out a stack corruption error in a function when I noticed
Trying to figure out datetime module and need some help. I've got a string
Trying to figure out a rather annoying IE7 CSS issue. For some strange reason
Trying to figure out what went wrong, must be a silly syntax. $objDatabase =
Trying to figure out how to open the default browser from a click on
Trying to figure out how I can do this properly. The print_r looks like
trying to figure out why this is happening - I have an input text

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.