西里尔文和PHPWord [英] Cyrillic and PHPWord

查看:182
本文介绍了西里尔文和PHPWord的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的页面中的默认编码是UTF-8。我必须把文件写在西里尔文。整个应用程序是拉丁文脚本,所以我可以将每个单一的符号从一个转换为另一个,但我不能使PHPWord写西里尔字母。我把它写成扩展拉丁语(ŠĐĆČŽ),但是我需要它写ЉЊШЂЋЏ¢等...



我如何使PHPWord写西里尔字母?

解决方案

我已经解决了这个错误:

  header('Content-Type:text / html; charset = utf-8'); 

没关系,我在html元标记中定义了它,它的工作原理如下! p>

The default encoding in my page is UTF-8. I have to write the document in Cyrillic. The whole application is in Latin script, so I can convert every single symbol from one to another, but I can't make PHPWord write Cyrillic letters. I made it write extended Latin (ŠĐĆČŽ), but I need it to write Љ Њ Ш Ђ Ћ Џ Ц etc...

How can I make PHPWord write Cyrillic letters?

解决方案

I have fixed this error with:

header('Content-Type: text/html; charset=utf-8');

Does't matter that I had it defined in html meta tag, It works like this!

这篇关于西里尔文和PHPWord的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆