My Oracle Support Banner

What Encoding Should Be Used for the Byte Array in the setComment Code in WebCenter Enterprise Capture? (Doc ID 2365151.1)

Last updated on FEBRUARY 27, 2018

Applies to:

Oracle WebCenter Enterprise Capture - Version 11.1.1.8.0 and later
Information in this document applies to any platform.

Goal

There is a business need to update the batch note in a folder import job to inform users of batch problems.

The following did not work:

var comment = "No PDF files in batch";
batch.setComment(comment.getBytes("UTF-16"));

comment = String("NO PDF FILES IN BATCH");
batch.setComment(comment.getBytes());

What encoding should be used for the byte array? 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.