You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When executing a prql query that contains non-english characters, such as "фы", I get the Non-zero exit value for runArgs:stream did not contain valid UTF-8 error.
If I run java -Dfile.encoding=UTF-8 -cp "c:\Progra~2\TimeStored.com\qstudio.jar;c:\Progra~2\TimeStored.com\libs\*" com.timestored.qstudio.QStudioLauncher, everything works as expected
Oh, just realized this also applies to InputStreamReader: before specifying -Dfile.encoding=UTF-8, the error lines printed by prqlc were not displaying correctly in qstudio's output pane.
When executing a prql query that contains non-english characters, such as "фы", I get the
Non-zero exit value for runArgs:stream did not contain valid UTF-8
error.The error seems to originate here:
qstudio/qstudio/src/main/java/com/timestored/qstudio/CommonActions.java
Lines 507 to 521 in ebb24b3
"stream did not contain valid UTF-8" is probably a rust error, complaining about whatever it received on stdin.
OutputStreamWriter docs say it uses the "default" encoding when not explicitly specified.
If I run
java -Dfile.encoding=UTF-8 -cp "c:\Progra~2\TimeStored.com\qstudio.jar;c:\Progra~2\TimeStored.com\libs\*" com.timestored.qstudio.QStudioLauncher
, everything works as expectedAs common for a non-english system, I have "Current language for non-Unicode programs" configured in Windows, with the UTF-8 checkbox NOT selected.
Should the OutputStreamWriter's encoding be explicitly specified as UTF-8, if that's what prqlc expects? Claude suggests:
The text was updated successfully, but these errors were encountered: