Internationalization problems with UTF8 IIS and custom 404 errorpages

Posted on 2009-02-18
Last Modified: 2012-05-06
Internationalization problems with UTF8 IIS and custom errorpages...

We run sites in many different contries and now the time has come to
also include languages do not use the latin charset.

We then have to move to UTF8. So far no problems.

But or entire site structure is build around the custom 404 error page principle.
We use the path as a navigation/command variable , so for instance the page does not exist but "redirects" to

However with UTF comes a whole bunch of characters like "M=F8:;>?548O" and when i try to write the query_string for
http://localhost/M=F8:;>?548O i simply get: "404;http://localhost:80/????????????".

All UTF characters is replaced by question marks.
How can i combat this?
Question by:Nettkatalogen
    LVL 22

    Expert Comment


    Author Comment

    Still gives out ????? when you try to use a custom 404 asp handler.. :-(
    LVL 22

    Accepted Solution

    If I understand the article correctly, to do this you need to encode the URL string on the client side before sending it to the server and then un-encode the string to get it into a variable that you can use.
    In addition to this, you also need to modify the web.config to allow the site to properly handle UTF-8 encoding.

    You did all these things and it still does not work?

    Assisted Solution

    This might help you out:

    I just had a similar problem and I solved it by using "HTTP_URL" as opposed to "QUERY STRING".

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Today I came across an interesting issue that had me pulling my hair out.  I was troubleshooting a new internal web site which uses integrated security instead of anonymous.  When browsing the site from my laptop, I was able to access it with no iss…
    Lync server 2013 Backup Service Error ID 4049 – After File Share Migration
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now