FEM bug - not starting with region fonts

About the development of the FEM module/workbench.

Moderator: bernd

efyx
Posts: 276
Joined: Fri Sep 26, 2014 7:36 pm

FEM bug - not starting with region fonts

Postby efyx » Tue Oct 09, 2018 1:18 pm

Solver doesn't start (cannot create file) while name of file has region fonts (should have UTF-8 coding?).
User avatar
bernd
Posts: 7718
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: FEM bug - not starting with region fonts

Postby bernd » Tue Oct 09, 2018 1:24 pm

would you copy the FrerCAD error message
User avatar
Kunda1
Posts: 4331
Joined: Thu Jan 05, 2017 9:03 pm

Re: FEM bug - not starting with region fonts

Postby Kunda1 » Tue Oct 09, 2018 2:48 pm

efyx wrote:
Tue Oct 09, 2018 1:18 pm
Solver doesn't start (cannot create file) while name of file has region fonts (should have UTF-8 coding?).
@efyx also for @bernd's and posterity sake, please always post your Help > About FreeCAD > Copy to clipboard info when you post asking for help. Thanks
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
efyx
Posts: 276
Joined: Fri Sep 26, 2014 7:36 pm

Re: FEM bug - not starting with region fonts

Postby efyx » Wed Oct 10, 2018 7:35 am

bernd wrote:
Tue Oct 09, 2018 1:24 pm
would you copy the FrerCAD error message
Unexpected error when writing CalculiX input file: <type 'exceptions.UnicodeEncodeError'>
Traceback (most recent call last):
File "C:\Program Files\FreeCAD_0.18.14779_x64_dev_win\Mod\Fem\femtools\ccxtools.py", line 680, in run
self.write_inp_file()
File "C:\Program Files\FreeCAD_0.18.14779_x64_dev_win\Mod\Fem\femtools\ccxtools.py", line 550, in write_inp_file
self.inp_file_name = inp_writer.write_calculix_input_file()
File "C:\Program Files\FreeCAD_0.18.14779_x64_dev_win\Mod\Fem\femsolver\calculix\writer.py", line 76, in write_calculix_input_file
self.write_calculix_one_input_file()
File "C:\Program Files\FreeCAD_0.18.14779_x64_dev_win\Mod\Fem\femsolver\calculix\writer.py", line 165, in write_calculix_one_input_file
self.write_footer(inpfile)
File "C:\Program Files\FreeCAD_0.18.14779_x64_dev_win\Mod\Fem\femsolver\calculix\writer.py", line 1096, in write_footer
f.write('** file name --> ' + os.path.basename(FreeCAD.ActiveDocument.FileName) + '\n')
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0142' in position 26: ordinal not in range(128)

File after changed instead of "ł" to "l" works good.
User avatar
bernd
Posts: 7718
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: FEM bug - not starting with region fonts

Postby bernd » Wed Oct 10, 2018 10:50 am

efyx wrote:
Wed Oct 10, 2018 7:35 am
File after changed instead of "ł" to "l" works good.
Which object in FreeCAD FEM has this character? Would you post an simple example FreeCAD file?
efyx
Posts: 276
Joined: Fri Sep 26, 2014 7:36 pm

Re: FEM bug - not starting with region fonts

Postby efyx » Wed Oct 10, 2018 11:09 am

bernd wrote:
Wed Oct 10, 2018 10:50 am
File in attachment, also "ą", "ę" etc.. doesn't work.
Attachments
test_ł.FCStd
(12.26 KiB) Downloaded 6 times
User avatar
bernd
Posts: 7718
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: FEM bug - not starting with region fonts

Postby bernd » Wed Oct 10, 2018 11:36 am

issue #3629

confirmed on

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14957 (Git)
Build type: Release
Branch: master
Hash: 22513600ddc11a8d0d392f67225d443b7dc2e5bb
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: German/Switzerland (de_CH)
User avatar
bernd
Posts: 7718
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: FEM bug - not starting with region fonts

Postby bernd » Thu Oct 11, 2018 10:54 am