Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using q inside Windows PowerShell causes encoding issues #311

Open
nelsoncarr opened this issue Mar 13, 2023 · 0 comments
Open

Using q inside Windows PowerShell causes encoding issues #311

nelsoncarr opened this issue Mar 13, 2023 · 0 comments

Comments

@nelsoncarr
Copy link

Hello!

I'm an avid user of q but have recently run into the following issue:

When I'm using q on Windows 11 within PowerShell 7.2.9, special characters like Ä, ä, Ö, ö, Ü, ü are not probably encoded in the output file.

Sample command in Windows Powershell:

q -W all "SELECT column1, column2, column3 from input.csv" --encoding=UTF-8 --query-encoding=UTF-8 --output-encoding=UTF-8 -d"," -H -O > output.csv

ä for example is turned into "├ñ".

When I'm executing the same command in Window's normal cmd, I see no encoding issues in the output file. I would however prefer to run it inside PowerShell as I can combine it with other powerful commands.

Do you know how to fix this?

Many thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant