We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd9bea3 commit 66ce96aCopy full SHA for 66ce96a
nibabel/gifti/giftiio.py
@@ -76,5 +76,6 @@ def write(image, filename):
76
The Gifti file is stored in endian convention of the current machine.
77
"""
78
f = open(filename, 'wb')
79
- f.write(image.to_xml())
+ # Our giftis are always utf-8 encoded - see GiftiImage.to_xml
80
+ f.write(image.to_xml().encode('utf-8'))
81
f.close()
0 commit comments