Skip to content

fix(i18n): correct UTF-8 encoding for Chinese text and box-drawing ch…#20

Open
Andy-hhh-hub wants to merge 1 commit intoUnicomAI:mainfrom
Andy-hhh-hub:fix/frontend-i18n-encoding
Open

fix(i18n): correct UTF-8 encoding for Chinese text and box-drawing ch…#20
Andy-hhh-hub wants to merge 1 commit intoUnicomAI:mainfrom
Andy-hhh-hub:fix/frontend-i18n-encoding

Conversation

@Andy-hhh-hub
Copy link
Copy Markdown
Collaborator

…aracters

The i18n commit (2fd64cb) introduced corrupted UTF-8 characters in several frontend source files. The original files were likely encoded incorrectly during commit, causing:

  • Chinese text "简体中文" to appear as garbled characters "绠€浣撳腑鏂?"
  • Em dash "—" to be corrupted to "鈥?"
  • Box-drawing characters "──" to appear as "鈹€鈹€"

This fix corrects the encoding by replacing the corrupted byte sequences with the proper UTF-8 encoded characters.

Files affected:

  • src/api.ts: Fix section divider box-drawing characters
  • src/components/OnboardingWizard.tsx: Fix comment encoding
  • src/components/SettingsModal.tsx: Fix Chinese language label and comments
  • src/components/WelcomeScreen.tsx: Fix JSX text content

Root cause: The original commit likely suffered from a charset encoding mismatch during the git operations, resulting in mojibake.

…aracters

The i18n commit (2fd64cb) introduced corrupted UTF-8 characters in several
frontend source files. The original files were likely encoded incorrectly
during commit, causing:

- Chinese text "简体中文" to appear as garbled characters "绠€浣撳腑鏂?"
- Em dash "—" to be corrupted to "鈥?"
- Box-drawing characters "──" to appear as "鈹€鈹€"

This fix corrects the encoding by replacing the corrupted byte sequences
with the proper UTF-8 encoded characters.

Files affected:
- src/api.ts: Fix section divider box-drawing characters
- src/components/OnboardingWizard.tsx: Fix comment encoding
- src/components/SettingsModal.tsx: Fix Chinese language label and comments
- src/components/WelcomeScreen.tsx: Fix JSX text content

Root cause: The original commit likely suffered from a charset encoding
mismatch during the git operations, resulting in mojibake.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant