Swedish characters (åäö) not working on webserver

2019-09-05 23:44发布

问题:

As the headline says I have some strange problem of getting the special characters to work on the webserver but they show properly when I run the homepage from my local computer.

Using visual studio express 2012 for web. .NET framework is verison 4.5.51209.

In the aspx.vb file I change the Culture using.

System.Threading.Thread.CurrentThread.CurrentCulture = New CultureInfo("sv-SE")

And in the aspx file I have this code telling it should use UTF-8.

Page Language="VB" Culture="sv-SE" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" UICulture="SE"

<head>
        <meta http-equiv="Refresh" content="60"/>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>

Can someone help me and tell me what I'm missing?

The regional setting on the local computer is: Swedish (windows 7) On webserver it's also Swedish (windows server 2008 R2)

Cheers