This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
See welcome thread
Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Taglib Problem under Resin 2.1.11  RSS feed

Posts: 3
  • 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...
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!