On Thu, 2004-10-14 at 08:51, Lázaro Miguel Fung wrote: > Hi Shawn > > Thanks for your reply. > > I have tried to follow your solution but is not working. > > Is true that tomcat 5.0.28 has a know bug for utf-8. But searching the web I > found some solutions, but seems don't work in jdbforms without change the > code of the framework itself.
> <%@ page language= "java" import="java.lang.*,java.util.*" > contentType="text/html;charset=UTF-8" %> Ok, that looks fine. > > dbconnection > id = "simple" > isJndi = "false" > isPow2 = "true" > connectionProviderClass = > "org.dbforms.conprovider.SimpleConnectionProvider" > connectionPoolURL = "" > conClass = "org.postgresql.Driver" > name = > "jdbc:postgresql://localhost:5432/dbname?charSet=UTF-8" > username = "user" > password = "pass"/> Ok you specified the charSet in the url for the driver. > > > > This is the web.xml fragment: > > <filter> > <filter-name>Set Character Encoding</filter-name> > > <filter-class>org.dbforms.util.external.SetCharacterEncodingFilter</filter-c > lass> > <init-param> > <param-name>encoding</param-name> > <param-value>UTF-8</param-value> > </init-param> > </filter> > > <filter-mapping> > <filter-name>Set Character Encoding</filter-name> > <url-pattern>/*</url-pattern> > </filter-mapping> > > > How can this be configured to work ? I can fine the solution. This is the exact same filter I have too. For me under tomcat 5.028 / both Java 1.4/1.5 / linux / firefox /mysql UTF-8 works fine. Can you reproduce it in the bookstore? > > > - production: tomcat 5.028 / apache 1.3 > > Does adding this help? > > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> > > > > Are you using JSTL -- setLocale ? If so, that maybe a problem. > > (see > > > http://weblogs.java.net/blog/simongbrown/archive/2004/03/displaying_inte.html) > > > > It's likely the filter we are using for tomcat and not dbforms itself. > > The filter, which I assume you use should deal with the following"... > > > > "Most browsers don't appear to send > > back a charset in the request that corresponds to the encoding that was > > used > > to format the page. In this case, the request character encoding > > defaults to > > ISO-8859-1 meaning that there's potentially a mismatch between form data > > being sent (in UTF-8) and information retrieved from the request (in > > ISO-8859-1) using the getParameter() method on the HttpServletRequest > > class. > > To fix this, all you need to do is explicitly set the character encoding > > of > > the request before accessing data. > > > > request.setCharacterEncoding("UTF-8");" > > > > I read some on the Tomcat mailing list sometime ago that the timing of > > when the charactorEncoding was set changed. I can recall the details > > but think you need to have request.setCharacterEncoding("UTF-8"); called > > earlier or it will be set to a default value automatically and then your > > attempt to set it later will be ignored. > > > > I did not have the problem myself and just read about it so am not 100% > > sure but definately you should search for " setCharacterEncodingtomcat > > error" or something like that. > > > > Otherwise, > > if the filter provided by dbforms is not working, I would look for > > another. There should be one in the Tomcat version you have. > > > > > > -- > > Shawn <[EMAIL PROTECTED]> > > > > > > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > DbForms Mailing List > > http://www.wap-force.net/dbforms -- Shawn <[EMAIL PROTECTED]> ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ DbForms Mailing List http://www.wap-force.net/dbforms