|
Hi Dear SOPS community 👋 I have Is there any way how to preserve UTF-8 encoding in this case? |
Answered by
s-horbach
Jan 28, 2025
Replies: 1 comment 3 replies
|
Hi, can you provide more information, like which operating system you are using (I assume Windows?), and which store (output format) you are using? I'm not aware of SOPS using anything else than UTF-8, but that of course could be because some library used for some format uses UTF-16 LE BOM under certain circumstances (like a specific platform). |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The issue was in PowerShell, where i ran the command - by default it uses UTF-16 when the command output is redirected to a file, for instance:
values.local.yaml > values.local.enc.yaml(more details: Changing PowerShell's default output encoding to UTF-8)When i run exactly the same command in
cmd.exeor just use--outputflag - it works as expected.