Tenants import: impossible with special characters #1971

Closed
opened 2025-12-29 17:21:01 +01:00 by adam · 3 comments
Owner

Originally created by @gdouchet on GitHub (Aug 27, 2018).

Environment

  • Python version: 2.7
  • NetBox version: 2.4.4

When trying to import this kind of tenant with special characters, I get an error.
If I add this tenant with the webpage and same contents, it's ok.

Steps to Reproduce

Import these lines with tenant import page:
name,slug,group,description,comments
UNIV,univ,customers,Université,

This error appears:
<type 'exceptions.UnicodeEncodeError'>
'ascii' codec can't encode character u'\xe9' in position 29: ordinal not in range(128)

Originally created by @gdouchet on GitHub (Aug 27, 2018). ### Environment * Python version: 2.7 * NetBox version: 2.4.4 When trying to import this kind of tenant with special characters, I get an error. If I add this tenant with the webpage and same contents, it's ok. ### Steps to Reproduce Import these lines with tenant import page: name,slug,group,description,comments UNIV,univ,customers,Université, This error appears: <type 'exceptions.UnicodeEncodeError'> 'ascii' codec can't encode character u'\xe9' in position 29: ordinal not in range(128)
adam added the type: bugstatus: accepted labels 2025-12-29 17:21:01 +01:00
adam closed this issue 2025-12-29 17:21:01 +01:00
Author
Owner

@jeremystretch commented on GitHub (Sep 5, 2018):

Please specify your Python version as indicated by the template.

@jeremystretch commented on GitHub (Sep 5, 2018): Please specify your Python version as indicated by the template.
Author
Owner

@gdouchet commented on GitHub (Sep 6, 2018):

Sorry, I didn't have the information when I created the issue and forgot to specify it later...

Repaired!

@gdouchet commented on GitHub (Sep 6, 2018): Sorry, I didn't have the information when I created the issue and forgot to specify it later... Repaired!
Author
Owner

@gdouchet commented on GitHub (Sep 12, 2018):

I tried with Python in 3.6.5 version and the bug is not present with this version.

I let you close the issue if it's ok for you.

@gdouchet commented on GitHub (Sep 12, 2018): I tried with Python in 3.6.5 version and the bug is not present with this version. I let you close the issue if it's ok for you.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1971