rules_k8s icon indicating copy to clipboard operation
rules_k8s copied to clipboard

Special characters are not allowed

Open prestonvanloon opened this issue 6 years ago • 3 comments

yaml.reader.ReaderError: unacceptable character #x1f48e: special characters are not allowed in "", position 1195

This seems to come from the python yaml reader which incorrectly rejects special unicode characters. The character in particular is 💎, which kubernetes gladly accepts as valid unicode.

https://www.compart.com/en/unicode/U+1F48E

prestonvanloon avatar Feb 03 '19 01:02 prestonvanloon

Supposedly this package supports yaml parsing with special characters: https://pypi.org/project/ruamel.yaml/

prestonvanloon avatar Feb 06 '19 15:02 prestonvanloon

Thanks for reporting this @prestonvanloon !

I mark this as a feature request for unicode. Do you think you can come up with a PR for it or do you want to leave this issue to other maintenance?

erain avatar Feb 06 '19 15:02 erain

Well I really want this feature :) but I have limited bandwidth.

I'll try to find a moment to give this a go, but consider that I am not working on it unless I explicitly mention it here. I haven't taken the time to investigate yet, but it seems like it might be a straightforward addition.

prestonvanloon avatar Feb 07 '19 02:02 prestonvanloon