Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can you change ascii to utf-8 for global user to use? #266

Open
librix opened this issue Dec 17, 2022 · 1 comment
Open

can you change ascii to utf-8 for global user to use? #266

librix opened this issue Dec 17, 2022 · 1 comment

Comments

@librix
Copy link

librix commented Dec 17, 2022

Description

can you change ascii to utf-8 for global user to use?

Steps to Reproduce

change pdf name to CJK word. use as usual.

Expected behavior

auto generated new node name change to ??????? , and context contains half of html code.

Environment (fill where applicable)

  • Version: SMA 2.0.4.89, PDF Plugin 2.0.4.10
@Celestial-Plato
Copy link

我看了下源码,造成元素的标题为问号的原因是这个插件底层解析PDF title和author使用的是Pdfium.Net SDK, 这个SDK默认解析方式就是Unicode, 中文字符解析后返回回来就是乱码,如果要修复这个问题的话,整个插件就不能使用这个SDK, 需要重写。

目前想要标题显示正常的话,就需要通过Adobe Acrobat DC将PDF的元数据中的标题和作者都改为英文,或者不填。

勾选区域和语言中的Unicode UTF-8可以解决内容页的“锘?h2>”乱码问题,不过以前用GB2312编码的文件就会乱码,需要转换为UTF-8才能正常显示。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants