[sword-svn] r2205 - trunk/bindings/corba/java/src/org/crosswire/sword/orb

scribe at www.crosswire.org scribe at www.crosswire.org
Sun Sep 21 18:51:19 MST 2008


Author: scribe
Date: 2008-09-21 18:51:19 -0700 (Sun, 21 Sep 2008)
New Revision: 2205

Modified:
   trunk/bindings/corba/java/src/org/crosswire/sword/orb/SwordOrb.java
Log:
trying to work out our UTF8 issue


Modified: trunk/bindings/corba/java/src/org/crosswire/sword/orb/SwordOrb.java
===================================================================
--- trunk/bindings/corba/java/src/org/crosswire/sword/orb/SwordOrb.java	2008-09-19 00:47:45 UTC (rev 2204)
+++ trunk/bindings/corba/java/src/org/crosswire/sword/orb/SwordOrb.java	2008-09-22 01:51:19 UTC (rev 2205)
@@ -28,7 +28,13 @@
 	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.ORB.init(new String[]{}, p);
 	static Hashtable clients = new Hashtable();
 	String ior = null;
 	String remoteAddr = null;




More information about the sword-cvs mailing list