Solved

why do i get "No mapping for the Unicode character exists in the target multi-byte code page"

Posted on 2009-04-05
4
4,722 Views
Last Modified: 2013-12-07
I have a website running on iis7 and windows server 2008 when i try to access it with mozzila firefox from some computers i get "System.ArgumentOutOfRangeException: No mapping for the Unicode character exists in the target multi-byte code page. (Exception from HRESULT: 0x80070459)"
0
Comment
Question by:aquasw
  • 2
4 Comments
 
LVL 35

Accepted Solution

by:
torimar earned 500 total points
ID: 24075745
Is the correct charset defined in the "content-type" header?
Since you probably are using Hebrew characters, this charset will have to be ISO-8859-8 or utf-8, I guess.

For HTML:
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >

For XHTML:
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
0
 

Author Comment

by:aquasw
ID: 24076382
the same meta tag exists on my masterpage
0
 

Author Comment

by:aquasw
ID: 24178026
anyone ?
0
 

Expert Comment

by:MoishG
ID: 35972838
Helllo, i had also this kind of problem in firefox ,using hebrew url characters ,so i used
the method encodeURIComponent() in javascript at the .src url link  .
in my case the problem was at the google analytics  script , so i executed the encodeURIComponent()
on the link and the problem solved  :)
hope this will for for u .

in  my case solution:

(function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = encodeURIComponent(('https:' == document.location.protocol ? 'https://ssl' : 'http://www')) + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
Several part series to implement Internet Explorer 11 Enterprise Mode
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

707 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

12 Experts available now in Live!

Get 1:1 Help Now