tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Livanov <sergey.liva...@ukrpost.net>
Subject Tomcat i18n
Date Thu, 01 May 2003 19:27:37 GMT
 Please help adjust Tomcat: 

I'm using Struts. The page coding is W1251. When the Cyrillics is entered in the symbol field
in ActionClass and Model  multiple ???? pop up instead of Cyrillic characters. ???? also show
up in the data base ( Oracle8i  with windows 1251 )
 
Data from CLOb are also coded in the wrong code. But varcher2 data read on the screen (bean:write)
in the right coding, i.e. in Cyrillics.

clob read code

     c_lob = rs.getClob(1) ; 			
     hr_buffer = new char[ (int)c_lob.length() ] ; 
     raw_buffer = new byte[ (int)c_lob.length() * 4 ] ; 
     raw_instream = c_lob.getAsciiStream() ; 
     raw_instream.read( raw_buffer ) ; 
     out_buffer = new String( raw_buffer ) ; 			
     raw_instream.close() ;

Thanks .


--
Укрпост - продвинутая почта. http://www.ukrpost.net/
IMAP POP3 NNTP RSSNews Unicode.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message