[BUG] Arabic/Persian UTF-8 text is returned as mojibake by Claude Web endpoint
OmniRoute Version
3.8.50
Installation Method
npm (global)
Operating System
Windows
OS Version
Windows 11
Node.js Version
v24.13.0
Provider(s) Involved
Claude Web
Model(s) Involved
Claude
Client Tool
VS Code Chat
Description
Persian/Arabic UTF-8 responses from the Claude Web endpoint are incorrectly decoded and returned as mojibake when used through VS Code Chat.
For example, سلام is returned as سلام instead of the correct UTF-8 text.
Steps to Reproduce
- Configure OmniRoute 3.8.50 with the Claude Web endpoint.
- Use the endpoint from VS Code Chat.
- Send a prompt that produces a Persian/Arabic response.
- Observe the response in VS Code Chat.
Expected Behavior
Persian/Arabic text should be returned and displayed correctly as UTF-8.
Example:
سلام! این پیام یک تست ساده به نظر میرسه، نه یک درخواست واقعی برای انجام کاری خاص.
Actual Behavior
Persian/Arabic UTF-8 text is returned as mojibake.
Example:
سلام! این پیام یک تست ساده به نظر می‌رسه، نه یک درخواست واقعی برای انجام کاری خاص.
Test Impact
Needs a new unit test
Error Logs / Output
Add an automated test covering UTF-8/Unicode responses from the Claude Web endpoint, including Persian and Arabic text, to ensure the response is decoded correctly.
No explicit error is reported. The issue is an incorrect UTF-8 decoding/encoding of the response body.
Screenshots
Actual:
Expected:
Additional Context
The issue occurs specifically with Persian/Arabic Unicode text. The same endpoint works correctly for non-Persian/Arabic text.
OmniRoute was installed globally via npm on Windows 11 and is being used as the API endpoint for VS Code Chat.
Validation Plan
- Send a Persian response through the Claude Web endpoint and verify that UTF-8 characters are preserved.
- Test Arabic text as well as Persian text.
- Verify the same response in VS Code Chat without mojibake.
Source: diegosouzapw/OmniRoute