Tried that first but unichr() breaks with the same errors for non-BMP chars
on narrow builds.

On Friday, December 20, 2013, Ned Batchelder wrote:

> In notifier/digest.py:
>
> >          # nothing to do
> >          return s
> >      # truncate, taking an extra -3 off the orig string for the ellipsis itself
> > -    return s[:length - 3].rsplit(' ', 1)[0].strip() + '...'
> > +    uchr = lambda x: '\U{0:08x}'.format(x).decode('unicode-escape')
>
> You just re-invented the unichr builtin function! :)
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/edx/notifier/pull/10/files#r8511341>
> .
>