Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Special characters in path cause error #75

Open
bmcrae opened this issue Mar 6, 2015 · 1 comment
Open

Special characters in path cause error #75

bmcrae opened this issue Mar 6, 2015 · 1 comment
Labels

Comments

@bmcrae
Copy link
Contributor

bmcrae commented Mar 6, 2015

Special characters in can cause errors without an informative error message.

For example, one user had an accent mark in her output path (included the word 'Tânia'), and this produced the following error:
File "PythonCard\widget.pyc", line 408, in _dispatch
File "circuitscape\gui.pyc", line 443, in on_calc_Button_mouseClick
File "circuitscape\cfg.pyc", line 164, in write
File "ConfigParser.pyc", line 412, in write
UnicodeEncodeError: "ascii" codec can't encode character u'\xe2' in position 20:
ordinal not in range(128)

Having an error message that suggests a path without special characters would be helpful in cases like this.

@bmcrae bmcrae added the bug label Mar 6, 2015
@tanmaykm
Copy link
Member

Python ConfigParser not able to handle unicode?
Or may be there is some coercion of a unicode string to ascii happening somewhere.

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

No branches or pull requests

3 participants
@tanmaykm @bmcrae and others