简体   繁体   English

Glassfish html文件中的utf-8编码支持

[英]utf-8 encoding support in html file in glassfish

I have an HTML file in web-inf folder with Unicode characters. 我在web-inf文件夹中有一个带有Unicode字符的HTML文件。 But when I run it, unrecognizable characters are shown in the browser, how do I get the Unicode characters shown when I run it? 但是,当我运行它时,浏览器中会显示无法识别的字符,如何获得运行时显示的Unicode字符?

I tried <parameter-encoding default-charset="UTF-8"/> but it didn't work, what could be the solution? 我尝试了<parameter-encoding default-charset="UTF-8"/>但是它不起作用,怎么办?

在头部添加元标记

<meta charset="UTF-8">

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM