문제

I have some content on a webpage which contains æ ø å, but my webview cant show them properly.

Does anyone know what the problem might be ?

도움이 되었습니까?

해결책

In order to use UTF-8 characters inside an (X)HTML page you declare the encoding with this meta tag (in the head section of the page):

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

If that alone does not work you may be able to find more useful information here.

다른 팁

You need to ensure that the HTML file is saved as UTF-8 and that the Content-Type header in the HTTP response contains the proper charset. You can verify the headers by among others Firebug.

A <meta> tag for Content-Type would only work when the Content-Type header in the response is absent and this is usually not the case when the HTML file is served over HTTP. However, its presence is good for offline viewing and self-documentary purposes.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top