-
Hi Dear SOPS community 👋 I have Is there any way how to preserve UTF-8 encoding in this case? |
Beta Was this translation helpful? Give feedback.
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). |
Beta Was this translation helpful? Give feedback.
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.exe
or just use--output
flag - it works as expected.