Problem with extended ASCII characters in web page/master page

Posted by Oyvind Brathen on Stack Overflow See other posts from Stack Overflow or by Oyvind Brathen
Published on 2010-03-28T07:18:27Z Indexed on 2010/03/28 7:23 UTC
Read the original article Hit count: 516

Filed under:
|

I have some localization problems in my webpage.

There are basically two problems (that I suspect have a different sulution, but they are conseptually linked)

First problem is this:

I have a website that is using a master page. All text from the page is fine, but all text that comes from the master page file, get scrambled norwegian characters. For example Ø shows up as Ø. It seems that all characthers in the extended ASCII table gets scrambled this way. Afterwards, if I open the master page in Notepad the Ø looks normal, but if I remove the Ø and write a new Ø manually, then save the file from Notepad, and then open the website in the browser, it looks fine and the Ø is shown properly. So it seems that Visual Studio saves the characters wrongly in the master file, but correct for the aspx file.

Any clue here?

The second issue is norwegian characters coming from jQuery. All of these characters get's replaced by a questionmark with a black box around it. Here, modifying the js file in Notepad does not help, and it still display scrambled in the browser.

Any input here would be appreciated.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about localization