开发者

How do I write German language on a web page?

开发者 https://www.devze.com 2023-04-07 12:15 出处:网络
I have to build a web page in German language. When I use some characters like ü (note the dots above the letter), it shows up like a question mark or black sig开发者_如何学Pythonn in the browser.

I have to build a web page in German language. When I use some characters like ü (note the dots above the letter), it shows up like a question mark or black sig开发者_如何学Pythonn in the browser.

How do I solve this?


The problem is that you're using the wrong encoding. Make sure that you're saving your web site as UTF-8 and put the following in your HTML <head> tag:

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


You could either use UTF-8 all throughout your project or instead of writing the ü you could write the htmlentity &uuml; (also analogue: &auml; &Auml; etc ... And &szlig;for ß

PS: As a German myself... Our language is called Germ a n :)


Use utf8 encoding by adding the following header to your webpage:

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

Also make sure your files are saved as utf8, this depends on your editor

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号