code: public int setString(String strValue, boolean bDisplayOption, int iMoveMode)
      {        
          try {
              strValue = this.encodeString(strValue);
          } catch (Exception ex) {
              Task task = ((BaseField)this.getField()).getRecord().getRecordOwner().getTask();
              return task.setLastError(ex.getMessage());
          }
          return super.setString(strValue, bDisplayOption, iMoveMode);
      }
docs: Convert and move string to this field.
  @param strString the state to set the data to.
  @param bDisplayOption Display the data on the screen if true.
  @param iMoveMode INIT, SCREEN, or READ move mode.
  @return The error code (or NORMAL_RETURN).