summaryrefslogtreecommitdiff
path: root/src/python/gudhi/tangential_complex.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'src/python/gudhi/tangential_complex.pyx')
-rw-r--r--src/python/gudhi/tangential_complex.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/gudhi/tangential_complex.pyx b/src/python/gudhi/tangential_complex.pyx
index 0083033c..6391488c 100644
--- a/src/python/gudhi/tangential_complex.pyx
+++ b/src/python/gudhi/tangential_complex.pyx
@@ -66,7 +66,7 @@ cdef class TangentialComplex:
def __cinit__(self, intrisic_dim, points=None, off_file=''):
if off_file:
if os.path.isfile(off_file):
- self.thisptr = new Tangential_complex_interface(intrisic_dim, str.encode(off_file), True)
+ self.thisptr = new Tangential_complex_interface(intrisic_dim, off_file.encode('utf-8'), True)
else:
print("file " + off_file + " not found.")
else: