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

Issues with umlauts and probably other unicode characters #9

Open
pollonamid opened this issue Nov 3, 2018 · 1 comment
Open

Issues with umlauts and probably other unicode characters #9

pollonamid opened this issue Nov 3, 2018 · 1 comment

Comments

@pollonamid
Copy link

Fritzbox with FritzOS 7
The program crashes when a smarthome device has an umlaut in its name.

Traceback (most recent call last):
File "/usr/bin/fritzhome", line 11, in
load_entry_point('pyfritzhome==0.4.0', 'console_scripts', 'fritzhome')()
File "/usr/lib/python2.7/site-packages/pyfritzhome/cli.py", line 187, in main
args.func(fritzbox, args)
File "/usr/lib/python2.7/site-packages/pyfritzhome/cli.py", line 20, in list_all
devices = fritz.get_devices()
File "/usr/lib/python2.7/site-packages/pyfritzhome/fritzhome.py", line 146, in get_devices
for element in self.get_device_elements():
File "/usr/lib/python2.7/site-packages/pyfritzhome/fritzhome.py", line 130, in get_device_elements
plain = self._aha_request('getdevicelistinfos')
File "/usr/lib/python2.7/site-packages/pyfritzhome/fritzhome.py", line 106, in _aha_request
return rf(plain)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 624: ordinal not in range(128)

@mjklemm
Copy link

mjklemm commented May 9, 2019

This is a typical converstation problem that I have stumpled across with my FritzBox as well. I will have a look at this and see if I can prepare a pull request to provide a fix.

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