File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Taglib Problem under Resin 2.1.11

 
Hua Yu
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, I have experienced a very very strange problem under resin 2.1.11.
The environment is Resin2.1.11/MySql 4/ConnectorJ 3.08, all use default character encoding setting(iso-8859-1).
the data in mysql are store using iso-8859-1, so I use a taglib to do encoding convertion and show the converted chinese character on webpage. All program runs perfect under tomcat 4.1.18, but encounter encoding problem under resin.
I added debug code in the taglib, and print both Strings before conversion and after. The code snippet like

I've compare the two "srcString" value under two server, no difference, but after encoding, tomcat get the correct encoding result, but resin get ??? only.
I think this problem is not concerned with mysql jdbc/application server, coz it is only console print...
Has anyone encounter the same problem before? can anyone help me? This really made me crazy for several days...
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic