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

【encoding problem】SMA is a great job, but unfortunately it is not available for many Asian users. #260

Open
Aria-stack opened this issue Jul 15, 2022 · 3 comments

Comments

@Aria-stack
Copy link

Aria-stack commented Jul 15, 2022

Description

I'm sorry I need to give feedback on a problem with Chinese locale computer support.

If the region of the computer is set to "Chinese (Simplified)", SMA will have a bunch of messy codes when importing and extracting PDFs and chrome pages.

1

messy code:

2
3

If you switch to "English (US)", this problem is solved. But at the same time, many other software used in Chinese environment has the problem of garbled code, which is a bit like you cannot have it both ways.
4

other software: (Someone in the community was affected by this problem while working all afternoon yesterday...)
5

This is a bit like the problem of Japanese Galgame games that need to be region-shifted, but after I tried all the region-shifting tools, like Locale Emulator and Ntleas, this problem still can't be solved, and all the tools don't work for SMA.

I have tried everything and feel exhausted. On behalf of the many Chinese community users who desperately need SMA, I would like to ask you, Alexis, to help solve this big problem.

Steps to Reproduce

6

  1. change region to Chinese(Simplified,China)
    7

Expected behavior

Everything is back to the normal import look, no messy code.

Environment (fill where applicable)

  • Version: [SMA 2.1.0-beta.21]
  • Last version that did not exhibit the issue:[always]
  • SM Version: [SM 18.05]
  • OS: [Windows 11 64bit]
  • OS Language: [Chinese, English]
  • Browser: [Chrome 103.0.5060.66]
@Aria-stack Aria-stack changed the title 【encoding problem】SMA works very well, but unfortunately it is not available for many Asian users. 【encoding problem】SMA is a great job, but unfortunately it is not available for many Asian users. Jul 15, 2022
@hcoona
Copy link

hcoona commented Feb 28, 2023

I also suffers from this issue. Looking forward to any update from SMA team.

@TeamBreakerr
Copy link

一年前的评论,同被该问题困扰😫

@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

4 participants