> -----Original Message----- > From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] > Sent: donderdag 13 juni 2002 23:16 > To: [EMAIL PROTECTED] > Subject: RE: Character encoding problems with XSP/ESQL > > Andrew, > > I would follow Jan's suggestion to isolate issue. First, make sure that > static XML with your target encoding and your set of funny characters > works ok. Then move on to the XSP. After that, add SQL. > > Chances are that your database returns broken strings. See also recent > Argyn's email about it: he had *one* 3-byte Chinese character in the > database, but it was extracted as *three* characters, i.e. string.size() > returned 3 instead of 1, clearly indicating that string is broken and > have to be re-encoded.
I agree with Vadim. But if XSP works just fine, and adding SQL seems to be the problem, it might be interesting to check the PostgreSQL mailing list also. I remember there are a lot of problems listed regarding character encoding, maybe it's a postgreSQL problem, to be more specific, a JDBC-PostgreSQL problem, since there's no problem using perl... Jan visit us @ http://www.xume.be --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>