antony baxter wrote:
> Displaying 'input' character by character:
> Character 0 = '8211'
> Character 1 = '235'
> Character 2 = '8212'
> Character 3 = '196'
> Character 4 = '8212'
> Character 5 = '231'
> Character 6 = '8211'
> Character 7 = '937'
> Character 8 = '8212'
> Character 9 = '199'
There's your problem. Your *input* is mangled.
The above decodes to:
--e"---A"---c,--?---C,
So at some point you or some library you're using has done something
like read a utf-8 byte sequence from a file and shoved it character by
character into a String. Another possible culprit is a wrong (implicit?)
encoding conversion or cast from a byte array type to a unicode string type.
The JDBC is storing exactly what you tell it to, and the good 'ol GIGO
rule is being applied.
--
Craig Ringer