It givesyorik wrote:@ulrich it seems your version of pivy doesn't take utf8 strings, although it claims to be coin4.
Can you try this in the python console?
Code: Select all
>>> from pivy import coin
>>> print coin.COIN_VERSION
4.0.0a
It givesyorik wrote:@ulrich it seems your version of pivy doesn't take utf8 strings, although it claims to be coin4.
Can you try this in the python console?
Code: Select all
>>> from pivy import coin
>>> print coin.COIN_VERSION
4.0.0a
Code: Select all
jo@jo-desktop-trusty:~$ freecad
FreeCAD 0.14, Libs: 0.14R3692 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2011
##### #### ### ####
# # # # # #
# ## #### #### # # # # #
#### # # # # # # # ##### # #
# # #### #### # # # # #
# # # # # # # # # ## ## ##
# # #### #### ### # # #### ## ## ##
Draft workbench activated
Indiquez le centre :
Indiquez le rayon :
Indiquez le premier point :
Coin info in cc_string_utf8_get_char(): UTF-8 decoding of string "76.48 �m" failed.
To disable UTF-8 support and fall back to preCoin 4.0 behavior, set the
environment variable COIN_DISABLE_UTF8=1 and re-run the application.
freecad: SoAsciiText.cpp:870: void SoAsciiTextP::setUpGlyphs(SoState*, SoAsciiText*): Assertion `length' failed.
Abandon (core dumped)
latin1 µ (\xb5) differs form utf8 µ (\xc2\xb5) and a singular \xb5 is not valid utf8.rockn wrote:It was a little dimension strictly < 0.1 mm.Code: Select all
Coin info in cc_string_utf8_get_char(): UTF-8 decoding of string "76.48 �m" failed.
Code: Select all
Indiquez le premier point :
Traceback (most recent call last):
File "/home/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3217, in updateData
self.string = DraftGui.displayExternal(l,obj.ViewObject.Decimals,'Length',su).encode("utf8")
<type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xb5 in position 6: ordinal not in range(128)
Traceback (most recent call last):
File "/home/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3217, in updateData
self.string = DraftGui.displayExternal(l,obj.ViewObject.Decimals,'Length',su).encode("utf8")
<type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xb5 in position 6: ordinal not in range(128)
Traceback (most recent call last):
File "/home/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3217, in updateData
self.string = DraftGui.displayExternal(l,obj.ViewObject.Decimals,'Length',su).encode("utf8")
<type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xb5 in position 6: ordinal not in range(128)
Traceback (most recent call last):
File "/home/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3217, in updateData
self.string = DraftGui.displayExternal(l,obj.ViewObject.Decimals,'Length',su).encode("utf8")
<type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xb5 in position 6: ordinal not in range(128)
Traceback (most recent call last):
File "/home/jo/Logiciels/FreeCAD/free-cad-code/build/Mod/Draft/Draft.py", line 3217, in updateData
self.string = DraftGui.displayExternal(l,obj.ViewObject.Decimals,'Length',su).encode("utf8")
<type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xb5 in position 6: ordinal not in range(128)
Code: Select all
self.string = DraftGui.displayExternal(l,obj.ViewObject.Decimals,'Length',su).decode("latin1").encode("utf8")