verify charset of JDBC connection



Hi!

Is there a chance to check the characterset of the database connection? I
need UTF-8, if I install the database with another character set a
method should check this at runtime and throw an exception if it is the
wrong charset. Any ideas?

Thanks
Andre
.



Relevant Pages

  • Re: Im sure glad I didnt buy a Mac Mini!
    ... MS isn't making you send UTF-8 from your Mac to people who have trouble ... >>>> No, it's just Outlook. ... > emails from maccies are not using old versions of Outlook. ... But then you probably have no idea what the difference is between a character set and a font. ...
    (comp.sys.mac.advocacy)
  • Re: Any portable way get a filename in UTF-8 or to get the FS encoding ?
    ... A reasonable convention to use is that all file names be stored in a normalized utf-8. ... The question of what to do where a process's character set is unable to convert from utf-8. ... If you want interoperability then a very good solution is to use a common base. ... It gets to the point that once you have decided you need to have multiple processes with different locale encodings to talk to each other, then using a common encoding like utf-8 and deprecating all other encodings becomes an interesting solution. ...
    (comp.unix.programmer)
  • Re: GIMP
    ... Using the fallback 'C' locale. ... from character set 'UTF-8' to 'ISO-8859-1' is not supported ... Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported ...
    (alt.os.linux.suse)
  • Re: Might be PHP after all
    ... changing hosts). ... On D, if I put in data with an apostrophe, it goes ... S has a default character set of lantin1, while D has a character set ... But if you get utf-8 anyway, ...
    (comp.lang.php)
  • Re: OT: character encodings (was: Linux 2.6.20-rc4)
    ... UTF-8 folk assume all text files are UTF-8 encoded. ... When you stored it on disk, the character set information was lost. ... $ git version ... A mixed charset environment was _already_ a pain in the butt, ...
    (Linux-Kernel)