- print "Test:", Test
- print "Тест:", lat2koi(Test)
- print "Тест:", unicode(lat2win(Test), "cp1251").encode("koi8-r")
+ print("Test:", Test)
+ print("Тест:", lat2koi(Test))
+ test = lat2win(Test)
+ if isinstance(test, bytes):
+ test = test.decode("cp1251")
+ print("Тест:", test.encode("koi8-r"))