一喊递、問題
- 當(dāng)使用
html-docx-js-typescript
將富文本導(dǎo)出為word
文檔時随闪,其中的中文內(nèi)容以及一些中文標(biāo)點符號會顯示為亂碼。
二骚勘、解決方法
- 為html代碼加上
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
铐伴,即:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
// 富文本的內(nèi)容
</body>
</html>