Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我页面中的默认编码是 UTF-8。我必须用西里尔文写文件。整个应用程序是拉丁文的,所以我可以将每个符号从一个转换成另一个,但是我不能让 PHPWord 写出西里尔字母。我让它写扩展拉丁语(ŠĐĆČŽ),但我需要它写ЉЊШЂЋЏЦ等...
如何让 PHPWord 写出西里尔字母?
我已通过以下方式修复了此错误:
header('Content-Type: text/html; charset=utf-8');
没关系,我在 html 元标记中定义了它,它就像这样工作!