All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH 2/2] receive-sms: Support printing received SMS with non-ASCII characters
Date: Mon, 24 Nov 2014 12:31:39 -0600	[thread overview]
Message-ID: <5473798B.4040306@gmail.com> (raw)
In-Reply-To: <1416534506-19999-2-git-send-email-neil@ossau.homelinux.net>

[-- Attachment #1: Type: text/plain, Size: 743 bytes --]

Hi Neil,

On 11/20/2014 07:48 PM, Neil Jerram wrote:
> Without this I get the following Python traceback, for an SMS that
> contains the UK pound sign.
>
> ERROR:dbus.connection:Exception in handler for D-Bus signal:
> Traceback (most recent call last):
>    File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 230, in maybe_handle_message
>      self._handler(*args, **kwargs)
>    File "./receive-sms", line 9, in incoming_message
>      print("%s" % (message))
> UnicodeEncodeError: 'ascii' codec can't encode character u'\xa3' in position 51: ordinal not in range(128)
> ---
>   test/receive-sms | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

Patch has been applied, thanks.

Regards,
-Denis


  reply	other threads:[~2014-11-24 18:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-21  1:48 [PATCH 1/2] sms: Option HSO modem can't really do CNMA Neil Jerram
2014-11-21  1:48 ` [PATCH 2/2] receive-sms: Support printing received SMS with non-ASCII characters Neil Jerram
2014-11-24 18:31   ` Denis Kenzior [this message]
2014-11-21  2:01 ` [PATCH 1/2] sms: Option HSO modem can't really do CNMA Neil Jerram
2014-11-24 18:29   ` Denis Kenzior
2014-11-26 10:37     ` Neil Jerram

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5473798B.4040306@gmail.com \
    --to=denkenz@gmail.com \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.