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

feat: [editor] Add encoding detection and conversion support #1008

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

Kakueeen
Copy link
Contributor

@Kakueeen Kakueeen commented Dec 2, 2024

Add encoding detection and conversion functionality to the editor, including:

  • Integrate chardet/uchardet/icu libraries for encoding detection
  • Add GB18030-2022 encoding support with special character handling
  • Implement encoding conversion between different character sets
  • Add encoding selection UI in status bar
  • Support reload file with different encodings
  • Add encoding configuration file with supported encoding list

The changes improve text file handling by:

  • Automatically detecting file encodings on open
  • Supporting manual encoding selection via UI
  • Preserving encoding when saving files
  • Handling special cases for Chinese encodings
  • Providing better user feedback about current encoding

Log: Add encoding detection and conversion support to editor

Copy link

github-actions bot commented Dec 2, 2024

  • 检测到debian目录文件有变更: debian/control

Copy link

github-actions bot commented Dec 2, 2024

  • 敏感词检查失败, 检测到1个文件存在敏感词
详情
{
    "debian/control": [
        {
            "line": "Homepage: http://www.deepin.org",
            "line_number": 47,
            "rule": "S35",
            "reason": "Url link | 6fe814dfb7"
        }
    ]
}

Copy link

github-actions bot commented Dec 2, 2024

  • 检测到debian目录文件有变更: debian/control

Copy link

github-actions bot commented Dec 2, 2024

  • 敏感词检查失败, 检测到1个文件存在敏感词
详情
{
    "debian/control": [
        {
            "line": "Homepage: http://www.deepin.org",
            "line_number": 47,
            "rule": "S35",
            "reason": "Url link | 6fe814dfb7"
        }
    ]
}

Copy link

github-actions bot commented Dec 2, 2024

  • 检测到debian目录文件有变更: debian/control

Add encoding detection and conversion functionality to the editor, including:

- Integrate chardet/uchardet/icu libraries for encoding detection
- Add GB18030-2022 encoding support with special character handling
- Implement encoding conversion between different character sets
- Add encoding selection UI in status bar
- Support reload file with different encodings
- Add encoding configuration file with supported encoding list

The changes improve text file handling by:
- Automatically detecting file encodings on open
- Supporting manual encoding selection via UI
- Preserving encoding when saving files
- Handling special cases for Chinese encodings
- Providing better user feedback about current encoding

Log: Add encoding detection and conversion support to editor
Copy link

github-actions bot commented Dec 2, 2024

  • 检测到debian目录文件有变更: debian/control

@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deepin-mozart, Kakueeen

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link

github-actions bot commented Dec 2, 2024

  • 敏感词检查失败, 检测到1个文件存在敏感词
详情
{
    "debian/control": [
        {
            "line": "Homepage: http://www.deepin.org",
            "line_number": 47,
            "rule": "S35",
            "reason": "Url link | 6fe814dfb7"
        }
    ]
}

@deepin-mozart deepin-mozart merged commit 1efce33 into linuxdeepin:master Dec 2, 2024
8 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants