Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

invalid character 'ÿ' looking for beginning of value #11

Open
sfxworks opened this issue Mar 16, 2021 · 5 comments
Open

invalid character 'ÿ' looking for beginning of value #11

sfxworks opened this issue Mar 16, 2021 · 5 comments

Comments

@sfxworks
Copy link

The default encoding is UTF-16 which yeilds invalid character 'ÿ' looking for beginning of value until converted into utf-8.

@karuppiah7890
Copy link
Owner

karuppiah7890 commented Mar 17, 2021

@sfxworks I didn't get the issue. Do you mean that when the values.yaml contains the character ÿ in the value part (in the start or anywhere) then there's some issue? I just tried the below in the values.yaml

randomValue: happÿ

anotherRandomValue: ÿay

And it worked

...
        "anotherRandomValue": {
            "type": "string"
        },
...
       "randomValue": {
            "type": "string"
        },
...

Could you explain some more details about what's the issue you are facing and how to reproduce it?

@sfxworks
Copy link
Author

Sorry, I am trying to say that when I run helm-schema-gen, the values.yaml.json is rendered and formatted in UTF-16, leading to helm to wonder what encoding the schema is in and failing to parse it. Can it default to UTF-8 or be set to the format the values file is in?

@karuppiah7890
Copy link
Owner

Ah! Didn't know about this. I'll check it out @sfxworks ! Thanks for bringing this up

@karuppiah7890
Copy link
Owner

@sfxworks Could you help me in reproducing the issue? I'm not able to reproduce it. Whenever I create the values.schema.json, it gets created in ASCII format somehow

@karuppiah7890
Copy link
Owner

$ file -I values.yaml 
values.yaml: text/plain; charset=utf-8

$ file -I values.schema.json 
values.schema.json: text/plain; charset=us-ascii

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

No branches or pull requests

2 participants