QuantumATK Forum

QuantumATK => General Questions and Answers => Topic started by: rmtriani on October 1, 2016, 20:29

Title: Problem to export
Post by: rmtriani on October 1, 2016, 20:29
Hello,

I have a problem to export any structure to other file formats.
This message appear for me:

> Traceback (most recent call last):
>   File "./zipdir/NL/GUI/Tools/Builder/Builder.py", line 647, in export
>   File "./zipdir/NL/GUI/Core/ConfigurationExporter.py", line 147, in export
> UnicodeEncodeError: 'ascii' codec can't encode character u'\xc1' in position 15: ordinal not in range(128)


Could anyone help me to solve?

I saw in other topic this  http://quantumwise.com/forum/index.php?topic=5.msg13#msg13
Can it  be a solution?

Title: Re: Problem to export
Post by: Ulrik G. Vej-Hansen on October 3, 2016, 10:06
I think the problem is caused by a unicode character in either the directory or the filename. As mentioned in the release notes for 2016.2, this still causes problems in some cases. So if you do have unicode characters somewhere in the directory/filename, try removing those and see if the problem persists.
Title: Re: Problem to export
Post by: Anders Blom on October 3, 2016, 17:44
Indeed, the unicode character u'\xc1' is equal to "Á" so either you have this in your username or the directory/filename where  you are trying to export the file. VNL 2017 will have better unicode support, but it's not entirely trivial to implement.
Title: Re: Problem to export
Post by: rmtriani on October 4, 2016, 02:19
Hi everyone,

Yes, to some others directory I can export. But as all you said I changed the name for directory which contain "À" character and it work.
I did not know this information. Thanks for that.