test unicode handling

This commit is contained in:
tshirtman 2013-04-17 17:03:20 +02:00
parent abc36192c3
commit 7baebbb465
1 changed files with 5 additions and 0 deletions

View File

@ -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'))