BrowserUse_and_ComputerUse_.../gateway
Vicaversa f90a627f9a fix(gateway): add missing UTF-8 encoding to file I/O preventing crashes on Windows
On Windows, Python's open() defaults to the system locale encoding
(e.g. cp1254 for Turkish, cp1252 for Western European) instead of
UTF-8. The gateway already uses ensure_ascii=False in json.dumps()
to preserve Unicode characters in chat messages, but the
corresponding open() calls lack encoding="utf-8". This mismatch
causes UnicodeEncodeError / UnicodeDecodeError when users send
non-ASCII messages (Turkish, Japanese, Arabic, emoji, etc.) through
Telegram, Discord, WhatsApp, or Slack on Windows.

The project already fixed this for .env files in hermes_cli/config.py
(line 624) but the gateway module was missed.

Files fixed:
- gateway/session.py: session index + JSONL transcript read/write (5 calls)
- gateway/channel_directory.py: channel directory read/write (3 calls)
- gateway/mirror.py: session index read + transcript append (2 calls)
2026-03-04 11:32:57 +03:00
..
platforms feat: enhance Home Assistant integration with service discovery and setup 2026-03-03 05:16:53 -08:00
__init__.py Enhance CLI with multi-platform messaging integration and configuration management 2026-02-02 19:01:51 -08:00
channel_directory.py fix(gateway): add missing UTF-8 encoding to file I/O preventing crashes on Windows 2026-03-04 11:32:57 +03:00
config.py feat: add Home Assistant integration (REST tools + WebSocket gateway) 2026-02-28 13:32:48 +03:00
delivery.py Hermes Agent UX Improvements 2026-02-22 02:16:11 -08:00
hooks.py Add messaging platform enhancements: STT, stickers, Discord UX, Slack, pairing, hooks 2026-02-15 21:38:59 -08:00
mirror.py fix(gateway): add missing UTF-8 encoding to file I/O preventing crashes on Windows 2026-03-04 11:32:57 +03:00
pairing.py Add messaging platform enhancements: STT, stickers, Discord UX, Slack, pairing, hooks 2026-02-15 21:38:59 -08:00
run.py merge: resolve conflict with main (add mcp + homeassistant extras) 2026-03-03 14:52:22 +03:00
session.py fix(gateway): add missing UTF-8 encoding to file I/O preventing crashes on Windows 2026-03-04 11:32:57 +03:00
status.py feat: implement channel directory and message mirroring for cross-platform communication 2026-02-22 20:44:15 -08:00
sticker_cache.py Add messaging platform enhancements: STT, stickers, Discord UX, Slack, pairing, hooks 2026-02-15 21:38:59 -08:00