[GH-ISSUE #1218] Strange bug if non-ascii chars on Name field #992

Closed
opened 2026-02-27 11:14:38 +03:00 by kerem · 0 comments
Owner

Originally created by @rycks on GitHub (Aug 21, 2017).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1218

Originally assigned to: @tonioo on GitHub.

Hello,
i have an error 500 on modoboa when i try to add new users ... so i'm looking for "what are the last things working ..."
There is a strange bug when i try to make an export of all identities : "'ascii' codec can't encode character u'\xe7'" ... so there is a "Jean-François" in the database !
No problem to add this user with non ascii char bug error on export :-/

Request Method: | POST
-- | --
https://xxxxxxxxxxxxxxxx/admin/identities/export/
1.10.7
UnicodeEncodeError
'ascii' codec can't encode character u'\xe7' in position 9: ordinal not in range(128)
/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa/core/models.py in to_csv, line 381
/usr/bin/uwsgi-core
2.7.13
['.',  '',  '/srv/modoboa/env/lib/python2.7',  '/srv/modoboa/env/lib/python2.7/plat-x86_64-linux-gnu',  '/srv/modoboa/env/lib/python2.7/lib-tk',  '/srv/modoboa/env/lib/python2.7/lib-old',  '/srv/modoboa/env/lib/python2.7/lib-dynload',  '/usr/lib/python2.7',  '/usr/lib/python2.7/plat-x86_64-linux-gnu',  '/usr/lib/python2.7/lib-tk',  '/srv/modoboa/env/local/lib/python2.7/site-packages',  '/srv/modoboa/env/lib/python2.7/site-packages']
lun, 21 Aoû 2017 05:44:00 +0200
Originally created by @rycks on GitHub (Aug 21, 2017). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1218 Originally assigned to: @tonioo on GitHub. Hello, i have an error 500 on modoboa when i try to add new users ... so i'm looking for "what are the last things working ..." There is a strange bug when i try to make an export of all identities : "'ascii' codec can't encode character u'\xe7'" ... so there is a "Jean-François" in the database ! No problem to add this user with non ascii char bug error on export :-/ ``` Request Method: | POST -- | -- https://xxxxxxxxxxxxxxxx/admin/identities/export/ 1.10.7 UnicodeEncodeError 'ascii' codec can't encode character u'\xe7' in position 9: ordinal not in range(128) /srv/modoboa/env/local/lib/python2.7/site-packages/modoboa/core/models.py in to_csv, line 381 /usr/bin/uwsgi-core 2.7.13 ['.', '', '/srv/modoboa/env/lib/python2.7', '/srv/modoboa/env/lib/python2.7/plat-x86_64-linux-gnu', '/srv/modoboa/env/lib/python2.7/lib-tk', '/srv/modoboa/env/lib/python2.7/lib-old', '/srv/modoboa/env/lib/python2.7/lib-dynload', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/srv/modoboa/env/local/lib/python2.7/site-packages', '/srv/modoboa/env/lib/python2.7/site-packages'] lun, 21 Aoû 2017 05:44:00 +0200 ```
kerem 2026-02-27 11:14:38 +03:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#992
No description provided.