diff options
author | Jeremias Maerki <jeremias@apache.org> | 2006-07-28 10:04:23 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2006-07-28 10:04:23 +0000 |
commit | bd2ca93f9a5ea9a303abdd7cac4a224678976e66 (patch) | |
tree | 0eefda4bf8248437842a5b580f92ca373e9e059f /src | |
parent | 5d373a54a40cf53c98e98b8e05d44552896f157f (diff) | |
download | xmlgraphics-fop-bd2ca93f9a5ea9a303abdd7cac4a224678976e66.tar.gz xmlgraphics-fop-bd2ca93f9a5ea9a303abdd7cac4a224678976e66.zip |
Bugzilla #40106:
Compatibility fix for GCJ (GNU Classpath): Using "UTF-16BE" instead of "UnicodeBigUnmarked" encoding.
Submitted by: Jeroen Meijer <jmeijer.at.notice.nu>
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@426465 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/java/org/apache/fop/pdf/PDFText.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/pdf/PDFText.java b/src/java/org/apache/fop/pdf/PDFText.java index 16fccb97e..bcf628d0e 100644 --- a/src/java/org/apache/fop/pdf/PDFText.java +++ b/src/java/org/apache/fop/pdf/PDFText.java @@ -180,7 +180,7 @@ public class PDFText extends PDFObject { final byte[] uniBytes; try { final char[] a = {c}; - uniBytes = new String(a).getBytes("UnicodeBigUnmarked"); + uniBytes = new String(a).getBytes("UTF-16BE"); } catch (java.io.UnsupportedEncodingException uee) { throw new CascadingRuntimeException("Incompatible VM", uee); } |