How to use Arabic characters in intradoc.common.ServiceException?
We are using customization in UCM to handle exception in UCM, we are trying to display exception in Arabic but getting "???? ????".
Below is the code for reference:
import intradoc.common.ServiceException;
private void restrictContentTypeForHCM() throws DataException, ServiceException {
public static final String INCORRECT_CONTENT_EXTENSION_WCC = "مستندات مرتبطة بالعملية";
String err_msg = new String (INCORRECT_CONTENT_EXTENSION_WCC.getBytes,"UTF-8");
throw new ServiceException(err_msg);
}
Error Msg:
intradoc.common.ServiceException: ??????? ?????? ????????
*ScriptStack CHECKIN_NEW_SUB
If i use English text in place of Arabic its working fine.
Eg:
intradoc.common.ServiceException: Content Size is Null or Zero
*ScriptStack CHECKIN_NEW_SUB