Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Something wrong with encoding #181

Closed
coffebar opened this issue Nov 11, 2015 · 1 comment
Closed

Something wrong with encoding #181

coffebar opened this issue Nov 11, 2015 · 1 comment
Labels
bug upstream Topics related to changes/bugs/quirks in upstream PyJNIus uses. (Python, Java, specific JNI, ...)

Comments

@coffebar
Copy link

coffebar commented Nov 11, 2015

Look at method _notify in AndroidNotification class:

def _notify(self, **kwargs):
    icon = getattr(Drawable, kwargs.get('icon_android', 'icon'))
    noti = NotificationBuilder(activity)
    noti.setContentTitle(AndroidString(
        kwargs.get('title').encode('utf-8')))
    noti.setContentText(AndroidString(
        kwargs.get('message').encode('utf-8')))
    noti.setSmallIcon(icon)
    noti.setAutoCancel(True)

    if SDK_INT >= 16:
        noti = noti.build()
    else:
        noti = noti.getNotification()

    self._get_notification_service().notify(0, noti)

I have problems with encoding in this code. Demo app to demonstrate problem.
Also a have opened ticket kivy/plyer#175 11 days ago.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/28158057-something-wrong-with-encoding?utm_campaign=plugin&utm_content=tracker%2F77133&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F77133&utm_medium=issues&utm_source=github).
@KeyWeeUsr
Copy link
Contributor

Closing, ref kivy/plyer#175 (comment).

@KeyWeeUsr KeyWeeUsr added bug upstream Topics related to changes/bugs/quirks in upstream PyJNIus uses. (Python, Java, specific JNI, ...) labels Jan 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug upstream Topics related to changes/bugs/quirks in upstream PyJNIus uses. (Python, Java, specific JNI, ...)
Projects
None yet
Development

No branches or pull requests

2 participants