How can I properly display German characters in HTML?

后端 未结 9 2033
悲&欢浪女
悲&欢浪女 2020-11-29 06:40

My pages contain German characters and I have typed the text in between the HTML tag, but the browser views some characters differently. Do I need to include anything in HT

9条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-29 07:00

    UTF-8 is your friend.

    Try

    
    

    and check which encoding your webserver sends in the header.

    If you use PHP, you can send your own headers in this way (you have to put this before any other output):

    
    

    Also doublecheck that you saved your document in UTF-8.

提交回复
热议问题