Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Encoding strikes back #51

Closed
szepeviktor opened this issue Feb 12, 2019 · 4 comments
Closed

The Encoding strikes back #51

szepeviktor opened this issue Feb 12, 2019 · 4 comments

Comments

@szepeviktor
Copy link
Contributor

szepeviktor commented Feb 12, 2019

from #26 (comment) the accent run produces:

$ cat /tmp/test.yml | shyaml get-value accent
Traceback (most recent call last):
  File "/usr/local/bin/shyaml", line 808, in <module>
    entrypoint()
  File "/usr/local/bin/shyaml", line 804, in entrypoint
    sys.exit(main(sys.argv[1:]))
  File "/usr/local/bin/shyaml", line 775, in main
    for output in do(stream=sys.stdin, **opts):
  File "/usr/local/bin/shyaml", line 658, in do
    yield act(action, value, dump=dump)
  File "/usr/local/bin/shyaml", line 588, in act
    return str(dump(value))
  File "/usr/local/bin/shyaml", line 458, in magic_dump
    return str(value) if isinstance(value, SIMPLE_TYPES) \
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe0' in position 0: ordinal not in range(128)

shyaml.py from master on Python 2.7.13 (python-yaml 3.12-1) on a fresh Debian 9

Please advise.

@szepeviktor
Copy link
Contributor Author

szepeviktor commented Feb 12, 2019

@szepeviktor
Copy link
Contributor Author

@vaab Friendly ping.

vaab added a commit that referenced this issue Dec 15, 2020
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
vaab added a commit that referenced this issue Dec 15, 2020
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
vaab added a commit that referenced this issue Dec 15, 2020
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
@vaab vaab closed this as completed in 70d793a Dec 15, 2020
@szepeviktor
Copy link
Contributor Author

Thank you.

@vaab
Copy link
Member

vaab commented Dec 15, 2020

@szepeviktor Sorry for the extreme delay.

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

No branches or pull requests

2 participants