Endroid doesn't handle unicode

Bug #1365909 reported by Phil Connell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
EnDroid
Confirmed
High
Unassigned

Bug Description

Endroid currently uses byte strings (i.e. Python2 str()) everywhere rather than unicode.

This leads to ridiculous code like *encoding* a string just fetched from the database before it's used elsewhere, e.g.
   users_blocked = users_blocked.encode('ascii')
in
   https://code.launchpad.net/~jamesh-f/endroid/smsblock/+merge/232910

Changes that should be made:
  - from __future__ import unicode_literals everywhere
  - Decode from byte strings at the edges of endroid core (e.g. when receiving a message, reading from the database, ...)
  - Plugins should never see byte strings.

Tags: unicode
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.