The JSON output should not depend on terminal encoding. Confirmed in source: export.ts:289 Expected behavior opencode export should always output UTF-8 encoded JSON regardless of the terminal's code ...