Skip to content

Decode GB18030 text files when importing notes#3779

Open
apples-kksk wants to merge 1 commit intoBoostIO:masterfrom
apples-kksk:fix/issue-3014-file-encoding
Open

Decode GB18030 text files when importing notes#3779
apples-kksk wants to merge 1 commit intoBoostIO:masterfrom
apples-kksk:fix/issue-3014-file-encoding

Conversation

@apples-kksk
Copy link
Copy Markdown

Fixes #3014.\n\n## Summary\n- Keep UTF-8 as the default import decoding path.\n- Detect failed UTF-8 decoding by checking replacement characters.\n- Fall back to GB18030 for imported text files that decode to CJK content, covering GBK/Windows ANSI Chinese files.\n\n## Validation\n- Ran: git diff --check.\n- Not run: project ESLint/tests because dependencies are not installed in this checkout.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The content can not displayed correctly for Chinese character when dragging existing files to Boostnote

1 participant