From 6cbd1fcb4d98f63e05cbd5c2fa3e7cd434311622 Mon Sep 17 00:00:00 2001 From: miteruzo Date: Sat, 2 Dec 2023 23:38:38 +0900 Subject: [PATCH] test --- aques.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aques.py b/aques.py index 484581e..3a625bc 100644 --- a/aques.py +++ b/aques.py @@ -18,7 +18,7 @@ class Aques: dic_path: str = './aq_dic' err = c_int (0) aqkoe.AqKanji2Koe_Create.restype = c_void_p - handle = aqkoe.AqKanji2Koe_Create (dic_path, byref (err)) + handle = aqkoe.AqKanji2Koe_Create (dic_path.encode ('utf-8'), byref (err)) koe: str = '' aqkoe.AqKanji2Koe_Convert.restype = c_int aqkoe.AqKanji2Koe_Convert (handle, text.encode ('utf-8'), koe, 4096)