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
In TGIK #149 @ 1h23m kustomize-controller reported failing to decode Kubernetes YAML due to "invalid UTF-16 characters", but in VSCode the file looks to display as a valid YAML file.
Windows PowerShell redirects (echo hi > ./file) write files as UTF-16 LE.
We should write test-cases to ensure that files with reasonable encodings work with our controllers.
This particular case may be unique to kustomize-controller, but we should verify that our other controllers don't also break.
The PowerShell workaround to write UTF-8 files is like so:
The text was updated successfully, but these errors were encountered:
stealthybox
changed the title
flux seems to struggle with UTF-16 encoded files written from Windows PowerShell
flux seems to struggle with UTF-16 LE encoded files written from Windows PowerShell
Mar 20, 2021
In TGIK #149 @ 1h23m kustomize-controller reported failing to decode Kubernetes YAML due to "invalid UTF-16 characters", but in VSCode the file looks to display as a valid YAML file.
Windows PowerShell redirects (
echo hi > ./file
) write files as UTF-16 LE.We should write test-cases to ensure that files with reasonable encodings work with our controllers.
This particular case may be unique to kustomize-controller, but we should verify that our other controllers don't also break.
The PowerShell workaround to write UTF-8 files is like so:
source: https://superuser.com/questions/327492/default-powershell-to-emitting-utf-8-instead-of-utf-16
The text was updated successfully, but these errors were encountered: