We’re the paying customer of your company and we got a problem when using
the Redaction package(GroupDocs.Redaction_20.11-Java.zip).
We did some tests with a .txt file and there are some Chiniese words in this
.txt file, it’s encoding format is UTF-8.
The test algorithm is replacing test, we want to replace these Chinese words
with other words(maybe Chinese words or English words).
We've tried these tests on both Ubuntu OS and Kylin OS, everything is OK on
Ubuntu OS, while we got some garbled codes(just like ???) on Kylin OS, all
of the Chinese words will be translated to the garbled codes. the test codes is
totally same and we don’t know why it only happened on Kylin OS.
Here is the codes for the test :
Redactor redactor = new Redactor(redactionOptions.getSourcePath());
List redactions = getRedactions(redactionOptions);
RedactorChangeLog redactorChangeLog = redactor.apply(redactions.toArray(new Redaction[]{}));
if (redactorChangeLog.getStatus() != RedactionStatus.Failed) {
RasterizationOptions rasterizationOptions = new RasterizationOptions();
rasterizationOptions.setEnabled(false);
redactor.save(outputStream, rasterizationOptions);
httpServletResponse.setStatus(HttpServletResponse.SC_OK);
}
Here is the Ubuntu test environment :
Host : Ubuntu OS
uname -a
Linux c7d20f2e7f91 4.15.18-147 #1 SMP Thu May 13 17:28:25 CST 2021 x86_64 x86_64 x86_64 GNU/Linux
Container :
java -version
java version “1.8.0_45”
Java™ SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot™ 64-Bit Server VM (build 25.45-b02, mixed mode)
Here is the Kylin OS test environment :
Host : Kylin OS running on ARM platform
uname -a
Linux aecffd3d62e8 4.4.131-20190505.kylin.server-generic #kylin SMP Mon May 6 14:34:13 CST 2019 aarch64 GNU/Linux
Container :
java -version
openjdk version “1.8.0_252”
OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1~deb9u1-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)
So could you please help us to explain or solve this problem? We'll
appreciate for your help, thanks alot.