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

UnicodeEncodeError: 'ascii' codec can't encode characters in position 395-401 #232

Open
ethan-peng opened this issue Jan 30, 2018 · 0 comments

Comments

@ethan-peng
Copy link

ethan-peng commented Jan 30, 2018

Hi Bro,
I'm using vpoller 0.6.3 to monitor my vmware environment.
Recently I found a issue.
One of my virtual machine named in Chinese.
And it can't be discovered by vpoller.

I use vpoller-client to check it manually,the following error message are displayed.
It seems the ascii code can't be supported.
Could I do something to make Chinese characters available?
Thanks

Host:~# vpoller-client --method vm.discover --vsphere-host 192.168.1.2
Traceback (most recent call last):
  File "/usr/local/bin/vpoller-client", line 4, in <module>
    __import__('pkg_resources').run_script('vpoller==0.6.3', 'vpoller-client')

  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 534, in run_script
    self.require(requires)[0].run_script(script_name, ns)

  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1445, in run_script
    exec(script_code, namespace, namespace)
    
  File "/usr/local/lib/python2.7/dist-packages/vpoller-0.6.3-py2.7.egg/EGG-INFO/scripts/vpoller-client", line 115, in <module>
    
  File "/usr/local/lib/python2.7/dist-packages/vpoller-0.6.3-py2.7.egg/EGG-INFO/scripts/vpoller-client", line 112, in main
    
UnicodeEncodeError: 'ascii' codec can't encode characters in position 395-401: ordinal not in range(128)
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