RobotStudio event

Erro when programming rapidcode in RS

My RS 5.08.2028.1009 generates an error while programming.

RobotStudio .NET exception dump
===============================
Base exception:
Exception has been thrown by the target of an invocation.
   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at qf4net.QHsm.Dispatch(IQEvent qEvent)
   at qf4net.QHsmQ.DispatchQ()
   at ABBInternal.RapidCommands.RapidEditorPresenter.ApplyChanges( ApplyChangesSession session)
   at ABBInternal.RapidCommands.ModuleManager.ApplyChanges(Documen tLocation documentLocation, Boolean askApply)
   at ABBInternal.RapidCommands.RapidCommandHandler.RapidCommands_ ExecuteCommand(Object sender, ExecuteCommandEventArgs e)
   at ABBInternal.Windows.RapidEditorWindow.cmd_ExecuteCommand(Obj ect sender, ExecuteCommandEventArgs e)
   at ABB.Robotics.RobotStudio.Environment.CommandBarButton.RaiseE xecuteCommand()
Inner exception:
ROB_E_INVALIDENCODING: A string does not contain characters exlusively from a supported encoding, e.g., ISO-8859-1 (ISO-Latin1).
SetText. Text was not iso-latin [15690]:RobRapidModuleImpl.cpp[607];
   at RobApiWrapper.RobRapidText.SetText(UInt32 cId, String text, String& newModuleName, Int32& cC)
   at RobApiWrapper.RobRapidModule.SetText(UInt32 cId, String text, String& newModuleName, Int32& cC)
   at ABBInternal.RapidServices.ModuleDocument.SetText(String text)
   at ABBInternal.RapidServices.ModuleDocument.SetTextAndBreakpoin ts(String text, RobPos[] breakpointPositions, RobPosExt[]& actualBreakpointRanges, RobPos[]& invalidBreakpoints)
   at ABBInternal.RapidCommands.RapidEditorPresenter.TransferConte ntFromEditorToVC()
   at ABBInternal.RapidCommands.RapidEditorPresenter.Editing(IQEve nt qevent)

I then have to shutdown RS and restart RS.

Here is the code i was trying to write in an ERROR handling

TPWrite "ERR_IOERROR";

MakeDir "HOME:/backub";

 

Best Regards

Klaus Soenderhegn
www.cadalysator.dk