cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Velichko" <>
Subject esql:get-ascii (cyrillic data)
Date Mon, 21 Apr 2003 15:10:39 GMT
Hello all,

I have a problem with retrieving the data from CLOB field by esql.
My enviroment is jdk1.4.1, tomcat 4.1.18, cocoon 2.1 (the same is in the cocoon 2.0), oracle

My DB data are encoded with the "Cp1251" characterset (NLS_CHARACTERSET and NLS_CHARACTERSET
are set to &#8220;CL8MSWIN1251&#8221;). (But the same situation is for the DB with
the characterset &#8220;UTF8&#8221;)
The data obtained from the text fields (VARCHAR2) are represented correctly by cyrillic symbols.
But the data obtained from the CLOB are not correct. They are replaced by another symbols.
F.e. the data from CLOB "абвгд" are changed to "01234".

My sitemap snippet:
<map:match pattern="about">
<map:generate src="test_document.xsp" type="serverpages"/>
	<map:serialize type="xml"/>

My &#8220;test_document.xsp&#8221; is the following:
<?xml version="1.0"?>
<xsp:page language="java" 
				select t.clobdata, t.varchardata 
				from testtable t
				where t.document_id=2
							<esql:get-ascii column="clobdata"/>
							<esql:get-string column="varchardata"/>
			<esql:no-results><p>Sorry, no results!</p></esql:no-results>

The variant with <esql:get-string column="clobdata&#8221;/> instead of <esql:get-ascii
&#8230;/> gives the same result.

Please advise what must I do to get correct data.

Best regards,

Peter Velychko

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message