strange unicode behaviour

Dean Oemcke <[email protected]>
Newsgroups gmane.comp.java.hsqldb.user
Message-ID <CACTjWF2K7S2q7UtjB8++FzfONzcBS3SiMaBT0Tk2foibM7RdWw@mail.gmail.com>
Hi,

Just thought I'd mention some strange behaviour I have encountered when
trying to insert unicode characters within an INSERT or UPDATE statement (
Hsqldb v2.2.9).

UPDATE foo SET bar = U&'\00E9'

As far as I'm aware, this should translate to the é character. However it
seems to convert to the equivalent of u000E.

It turns out that shifting the characters one to the left seems to produce
the desired result (although you are still forced to enter a redundant 4th
character which seems to get ignored). ie:

UPDATE foo SET bar = U&'\0E90'

The above produces the desired result of é
To me this seems a bit odd? Just thought I'd mention it in case it's a bug.

Cheers,
Dean

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter

_______________________________________________
Hsqldb-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hsqldb-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.