Custom field UnicodeEncodeError #545

Closed
opened 2025-12-29 16:23:05 +01:00 by adam · 2 comments
Owner

Originally created by @ghost on GitHub (Nov 21, 2016).

Hello.

I have an issue, when trying to write in custom Text type field letters on Russian language. We need to add Physical Address to our designated IP.

Error looks like that:
<type 'exceptions.UnicodeEncodeError'> 'ascii' codec can't encode characters in position 0-6: ordinal not in range(128)

Originally created by @ghost on GitHub (Nov 21, 2016). Hello. I have an issue, when trying to write in custom Text type field letters on Russian language. We need to add Physical Address to our designated IP. Error looks like that: `<type 'exceptions.UnicodeEncodeError'> 'ascii' codec can't encode characters in position 0-6: ordinal not in range(128)`
adam added the type: bug label 2025-12-29 16:23:05 +01:00
adam closed this issue 2025-12-29 16:23:05 +01:00
Author
Owner

@jeremystretch commented on GitHub (Nov 22, 2016):

Can you please provide the steps needed to reproduce this error?

@jeremystretch commented on GitHub (Nov 22, 2016): Can you please provide the steps needed to reproduce this error?
Author
Owner

@ghost commented on GitHub (Nov 23, 2016):

Yes, of course.

  1. Go to http://localhost/admin/extras/customfield/
  2. Add Custom Field
    screen1
  3. Add new IP address with custom field, filled in Russian language
    screen2-1
    screen2-2
  4. Click on Create button and see an error message
    screen3

I hope, this will be helpfull.
Thank you for your really good job.

@ghost commented on GitHub (Nov 23, 2016): Yes, of course. 1. Go to http://localhost/admin/extras/customfield/ 2. Add Custom Field ![screen1](https://cloud.githubusercontent.com/assets/23629859/20553286/682a5ce0-b164-11e6-9a01-95ecb1d08af4.PNG) 3. Add new IP address with custom field, filled in Russian language ![screen2-1](https://cloud.githubusercontent.com/assets/23629859/20553288/682b10ae-b164-11e6-861c-c7b73c5f0809.PNG) ![screen2-2](https://cloud.githubusercontent.com/assets/23629859/20553287/682acc98-b164-11e6-9f26-0a24e730ad06.PNG) 4. Click on Create button and see an error message ![screen3](https://cloud.githubusercontent.com/assets/23629859/20553290/6e61d732-b164-11e6-82b6-1639a781c20a.PNG) I hope, this will be helpfull. Thank you for your really good job.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#545