Subject | three byte unicode characters |
---|---|
Author | feddkraft |
Post date | 2003-12-18T18:08:26Z |
Sorry if it is the second/third copy of this message - didnt
undertand yet how to use this group....
---------
Hi,
I've just started with FB and I wonder if it is possible to populate
UNICODE_FSS fields with that characters that are coded with at least
three
bytes like musical symbols (http://www.unicode.org/charts/, several
latest
codecharts) with setString method of PreparedStatement object.
Never tried to make String with such symbols but encouraged by this:
(from
http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html)
The native coded character set of the Java programming language is
that of
the first seventeen planes of the Unicode version 3.0 character set;
that
is, it consists in the basic multilingual plane (BMP) of Unicode
version 1
plus the next sixteen planes of Unicode version 3. This is because the
language's internal representation of characters uses the UTF-16
encoding,
which encodes the BMP directly and uses surrogate pairs, a simple
escape
mechanism, to encode the other planes. Hence a charset in the Java
platform
defines a mapping between sequences of sixteen-bit values in UTF-16
and
sequences of bytes.
As far as I understood (with my English) Java is capable to carry
more-than-two-byte characters in String, for example (it will use that
"surrogate pairs" to escape 3-byte chars). May I hope that JayBird
will
automatically be able to put such a string into UNICODE_FSS field?
Thanx! :)
undertand yet how to use this group....
---------
Hi,
I've just started with FB and I wonder if it is possible to populate
UNICODE_FSS fields with that characters that are coded with at least
three
bytes like musical symbols (http://www.unicode.org/charts/, several
latest
codecharts) with setString method of PreparedStatement object.
Never tried to make String with such symbols but encouraged by this:
(from
http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html)
The native coded character set of the Java programming language is
that of
the first seventeen planes of the Unicode version 3.0 character set;
that
is, it consists in the basic multilingual plane (BMP) of Unicode
version 1
plus the next sixteen planes of Unicode version 3. This is because the
language's internal representation of characters uses the UTF-16
encoding,
which encodes the BMP directly and uses surrogate pairs, a simple
escape
mechanism, to encode the other planes. Hence a charset in the Java
platform
defines a mapping between sequences of sixteen-bit values in UTF-16
and
sequences of bytes.
As far as I understood (with my English) Java is capable to carry
more-than-two-byte characters in String, for example (it will use that
"surrogate pairs" to escape 3-byte chars). May I hope that JayBird
will
automatically be able to put such a string into UNICODE_FSS field?
Thanx! :)