diff options
Diffstat (limited to 'bindings/corba/java/src/org/crosswire/sword/orb/SwordOrb.java')
-rw-r--r-- | bindings/corba/java/src/org/crosswire/sword/orb/SwordOrb.java | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/bindings/corba/java/src/org/crosswire/sword/orb/SwordOrb.java b/bindings/corba/java/src/org/crosswire/sword/orb/SwordOrb.java index 3597b4b..d6987e9 100644 --- a/bindings/corba/java/src/org/crosswire/sword/orb/SwordOrb.java +++ b/bindings/corba/java/src/org/crosswire/sword/orb/SwordOrb.java @@ -1,3 +1,20 @@ +/* + * Copyright 2009 CrossWire Bible Society (http://www.crosswire.org) + * CrossWire Bible Society + * P. O. Box 2528 + * Tempe, AZ 85280-2528 + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation version 2. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + */ + package org.crosswire.sword.orb; import java.io.File; @@ -28,7 +45,13 @@ public class SwordOrb extends Object implements HttpSessionBindingListener { public static final String GENBOOKS = "Generic Books"; public static final String DAILYDEVOS = "Daily Devotional"; - static org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(new String[]{}, null); + static java.util.Properties p = new java.util.Properties(); + static { + p.setProperty("com.sun.CORBA.codeset.charsets", "0x05010001, 0x00010109"); // UTF-8, UTF-16 + p.setProperty("com.sun.CORBA.codeset.wcharsets", "0x00010109, 0x05010001"); // UTF-16, UTF-8 + } + + static org.omg.CORBA.ORB orb = org.omg.CORBA_2_3.ORB.init(new String[]{}, p); static Hashtable clients = new Hashtable(); String ior = null; String remoteAddr = null; |