Hi every one
we have found a bug with rhino script
Our script run correctly if we run it with a script editor but he didn’t run correctly with a toolbar buton
the problème is the name “emphasis” layer in file
do you know how to solve this probleme?
So you are saying that the accented characters like ê in layer names are causing the script to fail to run in V8 from a button or alias whereas it worked in V7? But the same script does run correctly in V8 if run from EditScript window?
Yes the accented characters made problem.I try to say the script run corecctly in rhino 7/8 if the script is run in script editor but if we run that script with button toolbar (-_Load script “path\file.rvb”) the script runn but him made nothing result and the Rhino 7/8 return no error message
for information, this script change the printwidth view
Open your script file in Notepad and save it with UTF-8 with BOM encoding.
The RhinoScript editor (RhinoScriptEditor.rhp) is saving script files as UTF-8, but with no byte order mark. RhinoScript (RhinoScript.rhp) requires that UTF-8 encoded text files have a byte order mark. If not, then are treated like ASCII encoded files. Thus the problem.
I’m surprised this hasn’t been reported already. Perhaps something has changed. I’ve logged the bug.