Swedish characters (åäö) not working on webserver but works on local computer

我怕爱的太早我们不能终老 提交于 2019-12-25 09:48:25

问题


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

来源:https://stackoverflow.com/questions/28805447/swedish-characters-%c3%a5%c3%a4%c3%b6-not-working-on-webserver-but-works-on-local-computer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!