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

Properly encode Unicode #86

Open
elfranne opened this issue Jan 29, 2018 · 0 comments
Open

Properly encode Unicode #86

elfranne opened this issue Jan 29, 2018 · 0 comments

Comments

@elfranne
Copy link

Ezmomi crashes when using unicode in the name of a VM ( and maybe other places too ? )
Installed ezmomi version 6.4.0 via pip

ezmomi list --type VirtualMachine 14:31:57
/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/connectionpool.py:789: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
InsecureRequestWarning)
VirtualMachine list
MOID Name Status
[list of virtual machines]

Traceback (most recent call last):
File "/usr/local/bin/ezmomi", line 4, in
cli.cli()
File "/usr/local/lib/python2.7/dist-packages/ezmomi/cli.py", line 16, in cli
ez.list_objects()
File "/usr/local/lib/python2.7/dist-packages/ezmomi/ezmomi.py", line 155, in list_objects
self.print_as_table(rows)
File "/usr/local/lib/python2.7/dist-packages/ezmomi/ezmomi.py", line 618, in print_as_table
print format.format(*row)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf8' in position 0: ordinal not in range(128)

NB: \xf8 is ø (a letter used in danish)

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

1 participant