# Erro when programming rapidcode in RS

**URL:** <https://tech-community.robotics.abb.com/t/erro-when-programming-rapidcode-in-rs/1117>\
**Category:** RobotStudio\
**Created:** [March 27, 2007, 1:08pm UTC](https://tech-community.robotics.abb.com/t/erro-when-programming-rapidcode-in-rs/1117 "2007-03-27T13:08:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Klaus](https://avatars.discourse-cdn.com/v4/letter/k/e99b99/32.png) [@Klaus](https://tech-community.robotics.abb.com/u/Klaus)\
**Post date:** [March 27, 2007, 1:08pm UTC](https://tech-community.robotics.abb.com/t/erro-when-programming-rapidcode-in-rs/1117/1 "2007-03-27T13:08:11Z")

</div>

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”;
