From 7baebbb46557ca739514b5acac7a14beca87c00f Mon Sep 17 00:00:00 2001 From: tshirtman Date: Wed, 17 Apr 2013 17:03:20 +0200 Subject: [PATCH] test unicode handling --- tests/test_implementation.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_implementation.py b/tests/test_implementation.py index bf5e37e..5fd7d32 100644 --- a/tests/test_implementation.py +++ b/tests/test_implementation.py @@ -1,3 +1,4 @@ +# coding: utf-8 import unittest from jnius.reflect import autoclass @@ -14,3 +15,7 @@ class ImplementationTest(unittest.TestCase): System = autoclass('java.lang.System') System.out.printf('hi\n') System.out.printf('hi %s %s\n', 'jnius', 'other string') + + def test_unicode(self): + System = autoclass('java.lang.System') + System.out.printf('é'.encode('utf-8'))