summaryrefslogtreecommitdiff
path: root/src/python/gudhi/off_reader.pyx
diff options
context:
space:
mode:
authorROUVREAU Vincent <vincent.rouvreau@inria.fr>2020-01-15 10:23:58 +0100
committerROUVREAU Vincent <vincent.rouvreau@inria.fr>2020-01-15 10:23:58 +0100
commitd747facccbe835be1384e569cf3d6e4c335c0364 (patch)
treec96f825a731b82f7240b2ffc81a57a8dd2bffa92 /src/python/gudhi/off_reader.pyx
parente1255fe356f1ff97533b33caa6179737a64c4898 (diff)
In python2, does not work. is ok for Python 2 and 3
Diffstat (limited to 'src/python/gudhi/off_reader.pyx')
-rw-r--r--src/python/gudhi/off_reader.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/gudhi/off_reader.pyx b/src/python/gudhi/off_reader.pyx
index 58f05db8..a0d5bf25 100644
--- a/src/python/gudhi/off_reader.pyx
+++ b/src/python/gudhi/off_reader.pyx
@@ -30,7 +30,7 @@ def read_points_from_off_file(off_file=''):
"""
if off_file:
if os.path.isfile(off_file):
- return read_points_from_OFF_file(str.encode(off_file))
+ return read_points_from_OFF_file(off_file.encode('utf-8'))
else:
print("file " + off_file + " not found.")
return []