How do I write German language on a web page?
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 ü
(also analogue: ä Ä
etc ... And ß
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
精彩评论