<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi<div><br></div><div>I was wondering if one can use filenames or paths containing unicode characters to the vtkPNGWriter in python ?</div><div>Here is my code :</div><div><br></div><div><div>#!/usr/bin/env python</div><div># -*- coding: utf-8 -*-</div><div><br></div><div>import vtk</div><div><br></div><div>filename = u"~/Desktop/myfolderü/image.png"</div><div>writer = vtk.vtkPNGWriter()</div><div>writer.SetFileName(filename)</div></div><div><br></div><div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Traceback (most recent call last):</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"> File "test.py", line 7, in <module></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"> writer.SetFileName(filename)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">TypeError: SetFileName argument 1: (unicode conversion error)</div></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><span style="font-family: Helvetica; font-size: 12px;">Thanks in advance.</span></div><div style="margin: 0px;"><br></div><div style="margin: 0px;"><br></div><div style="margin: 0px;">Michka</div></body></html>