FEM bug - not starting with region fonts

About the development of the FEM module/workbench.

Moderator: bernd

Post Reply
efyx
Posts: 280
Joined: Fri Sep 26, 2014 7:36 pm

FEM bug - not starting with region fonts

Post by efyx »

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

Re: FEM bug - not starting with region fonts

Post by bernd »

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

Re: FEM bug - not starting with region fonts

Post by Kunda1 »

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
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
efyx
Posts: 280
Joined: Fri Sep 26, 2014 7:36 pm

Re: FEM bug - not starting with region fonts

Post by efyx »

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
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: FEM bug - not starting with region fonts

Post by bernd »

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: 280
Joined: Fri Sep 26, 2014 7:36 pm

Re: FEM bug - not starting with region fonts

Post by efyx »

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

Re: FEM bug - not starting with region fonts

Post by bernd »

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
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: FEM bug - not starting with region fonts

Post by bernd »

Post Reply