OpenInterpreter / open-interpreter

A natural language interface for computers
http://openinterpreter.com/
GNU Affero General Public License v3.0
50.54k stars 4.4k forks source link

Open-interpreter can't read files in path containing CJK on windows #1306

Open inkfin opened 2 weeks ago

inkfin commented 2 weeks ago

Describe the bug

I created two folders ~\Documents\test and ~\Documents\测试, both containing a helloworld.md file. Open-interpreter tries to list the file through Get-ChildItem PowerShell provided, but it won't work with CJK files (only in open-interpreter, it does work in separated terminal). The error shows the path doesn't exists for some reason.

Reproduce

Here's the conversation

can_you_read_a_file_and__June_16_2024_17-43-53.json

Expected behavior

It should act the same as in a normal powershell window

Screenshots

No response

Open Interpreter version

0.2.6

Python version

3.11.9

Operating System name and version

Windows 11

Additional context

No response