Problem with DB and Char size (2)

Krasimir Angelov kr.angelov at gmail.com
Thu Jan 27 09:40:55 EST 2005


On Thu, 27 Jan 2005 06:34:40 -0800, John Meacham <john at repetae.net> wrote:
> On Thu, Jan 27, 2005 at 04:23:52PM +0200, Krasimir Angelov wrote:
> > HSQL uses withCString internally. withCString strips the higher order
> > bytes from Char.
> 
> You should be able to replace withCString with withUTF8String from my
> CWStringBasic module, which you can get from here:
> http://repetae.net/john/recent/src/HsLocale/CWStringBasic.hs
> 
> and is part of my bigger HsLocale project  http://repetae.net/john/recent/out/HsLocale.html
> but just that one file should be enough if all you need is UTF8.
>        John

Santoemma Enrico said that Oracle ODBC driver expects UCS-2 instead of
UTF-8 so this will not help.

Krasimir


More information about the Glasgow-haskell-users mailing list