Skip to content

bug: cant open folders on desktop w/ chinese characters in path #6906

@planb788

Description

@planb788

Description

On Windows systems, opening a folder with Chinese characters in its path will trigger this error:

TypeError: Failed to execute 'set' on 'Headers': String contains non ISO-8859-1 code point.
TypeError: String contains non ISO-8859-1 code point.
at mergeHeaders (http://tauri.localhost/assets/index-DbZ5794J.js:1705:5435)
at mergeConfigs (http://tauri.localhost/assets/index-DbZ5794J.js:1705:5072)
at createClient (http://tauri.localhost/assets/index-DbZ5794J.js:1705:6275)
at createOpencodeClient (http://tauri.localhost/assets/index-DbZ5794J.js:1705:31079)
at Object.init (http://tauri.localhost/assets/index-DbZ5794J.js:1728:27129)
at provider (http://tauri.localhost/assets/index-DbZ5794J.js:2:26550)
at http://tauri.localhost/assets/index-DbZ5794J.js:2:10804
at untrack (http://tauri.localhost/assets/index-DbZ5794J.js:2:4386)
at createComponent (http://tauri.localhost/assets/index-DbZ5794J.js:2:10797)
at get children (http://tauri.localhost/assets/index-DbZ5794J.js:1728:275288)

Plugins

no plugins

OpenCode version

v1.1.1

Steps to reproduce

Open a directory with Chinese characters in its path.

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwebRelates to opencode on web / desktopwindows

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions