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

Wrong encoding #12

Open
firesalp opened this issue Nov 10, 2017 · 0 comments
Open

Wrong encoding #12

firesalp opened this issue Nov 10, 2017 · 0 comments

Comments

@firesalp
Copy link

Hello,

I have some issues with special chars in the windows share name with autodiscover. Here is the output log:

Traceback (most recent call last):
  File "/usr/bin/shinken-discovery", line 175, in <module>
    d.write_config()
  File "/usr/local/lib/python2.7/dist-packages/shinken/discovery/discoverymanager.py", line 634, in write_config
    self.write_host_config(name)
  File "/usr/local/lib/python2.7/dist-packages/shinken/discovery/discoverymanager.py", line 649, in write_host_config
    self.write_host_config_to_file(final_host, d)
  File "/usr/local/lib/python2.7/dist-packages/shinken/discovery/discoverymanager.py", line 675, in write_host_config_to_file
    buf = self.get_cfg_bufer(d, 'host')
  File "/usr/local/lib/python2.7/dist-packages/shinken/discovery/discoverymanager.py", line 747, in get_cfg_bufer
    return '\n'.join(tab)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 77: ordinal not in range(128)

My locales are all set like this

export LANGUAGE=fr_FR.UTF-8
export LANG=fr_FR.UTF-8
export LC_ALL=fr_FR.UTF-8

Did I missed somethine?

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