Oracle WebCenter Content (MOSC)

MOSC Banner

How to use Arabic characters in intradoc.common.ServiceException?

edited Aug 26, 2017 5:00AM in Oracle WebCenter Content (MOSC) 2 commentsAnswered

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

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center