Skip to content

fix: add encoding='utf-8' to all file operations to prevent UnicodeEn…#213

Merged
programminx-askui merged 2 commits intomainfrom
fix/wite_text_without_encoding
Dec 17, 2025
Merged

fix: add encoding='utf-8' to all file operations to prevent UnicodeEn…#213
programminx-askui merged 2 commits intomainfrom
fix/wite_text_without_encoding

Conversation

@programminx-askui
Copy link
Collaborator

This pull request standardizes file reading and writing operations across the codebase to always specify encoding="utf-8". Additionally, it updates the project's coding guidelines to reflect this requirement and introduces new Git best practices.

File encoding standardization:

  • Updated all file read and write operations (e.g., Path.read_text(), Path.write_text()) in multiple modules to explicitly specify encoding="utf-8", ensuring proper handling of Unicode characters across platforms. [1] [2] [3] [4] [5] [6] [7] [8] [9]

Development guidelines update:

  • Added a new rule to .cursorrules requiring encoding="utf-8" to be specified for all file read and write operations.

Git workflow improvements:

  • Updated .cursorrules to discourage the use of git add . and to require explicit file additions, as well as to enforce the use of conventional commit message formats.…codeError

Copy link
Contributor

@danyalxahid-askui danyalxahid-askui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Can be merged after Checks pass.

@programminx-askui programminx-askui merged commit fc1c02a into main Dec 17, 2025
1 check passed
@programminx-askui programminx-askui deleted the fix/wite_text_without_encoding branch December 17, 2025 10:20
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.

2 participants