Excuse me if this question is misplaced or too trivial. I'm writing a CGI program in Haskell (CGI/HDBC/Sqlite3), the database contains UTF-8 strings. If I use HDBC.fetchRow() to retrieve the data, then HDBC.fromSql() to convert the data to Haskell, then Text.XHtml constructs to dsplay it, I get wrong results in the browser (ASCII rendering of UTF-8 characters, which looks like garbage). What is the way to do this correctly? Thanks -- L. Kalman -- Laszlo Kalman Theoretical Linguistics Program, kalman@nytud.hu Budapest University (ELTE) Research Institute for Linguistics, Room 209 P.O. Box 701/518, 1399 Budapest, Hungary (+36-1) 351 4830 x148, fax: (+36-1) 322 9297 http://budling.nytud.hu/~kalman "Me die? That'll be the last thing I do!"