On Tue, 2004-10-12 at 00:12, Lázaro Miguel Fung wrote:
> Hi,
> 
> I got running a jdbforms app version 2.5 snapshot, the app use postgresql
> database and using utf-8 character encoding.
> 
> The problem is that I'm moving to the production server, and some pages
> report: can not convert uft-8 to iso8859-1, but some others not. I don't
> think this is a postgresql bug, because is the same version, and the same
> database. The only diference is the tomcat/apache version:
> - development: tomcat 4.1 / apache 2.4
> - 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

Reply via email to