Keith,
This may be a little off-topic for the InstantDB list, but I'll keep it
brief. :-) There really isn't much code to it. You need to pass in the
encoding you want to the constructor of the InputStreamReader (or sub-class)
you are using. Here are some links to help: one to a list of encodings, the
other to the Java Tutorial trail about this.
http://java.sun.com/docs/books/tutorial/i18n/text/convertintro.html
http://java.sun.com/products/jdk/1.1/docs/guide/intl/encoding.doc.html
--Dan
-----Original Message-----
From: owner-instantDB@enhydra.org [mailto:owner-instantDB@enhydra.org]On
Behalf Of Keith Bigelow
Sent: Thursday, April 19, 2001 7:42 PM
To: instantDB@enhydra.org
Subject: RE: InstantDB: from taiwan
Dan,
Is this code something you feel is of sufficient usefulness to share as an
upload to the community??
keith
-----Original Message-----
From: owner-instantDB@enhydra.org [mailto:owner-instantDB@enhydra.org]On
Behalf Of Dan Reese
Sent: Thursday, April 19, 2001 1:07 PM
To: instantDB@enhydra.org
Subject: RE: InstantDB: from taiwan
Hello,
Since InstantDB stores Unicode Java characters, you will probably need to
convert from Big5 to Unicode in order to store them in the database (maybe
the IDB authors will know more). At my company, we've successfully done the
conversion using Java's ability to read a file in the Big5 encoding and
translate the characters to Unicode. Of course, you would then have to
convert them back to Big5 when you wanted to use them.
Dan Reese
Clearstone Corporation
-----Original Message-----
From: owner-instantDB@enhydra.org [mailto:owner-instantDB@enhydra.org]On
Behalf Of ffmm
Sent: Thursday, April 19, 2001 1:46 PM
To: instantdb@enhydra.org
Subject: InstantDB: from taiwan
dear staff:
does instantdb support directly read/write big5 characters to the database?
i am a user from taiwan...and most of my data are containing big5
characters...
how should i do?
looking forward your feedback...
thanks you very much
-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.
|