Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 58282 invoked from network); 4 Jan 2004 14:49:35 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 4 Jan 2004 14:49:35 -0000 Received: (qmail 50452 invoked by uid 500); 4 Jan 2004 14:49:19 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 50440 invoked by uid 500); 4 Jan 2004 14:49:18 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 50427 invoked from network); 4 Jan 2004 14:49:18 -0000 Received: from unknown (HELO hotmail.com) (207.68.163.54) by daedalus.apache.org with SMTP; 4 Jan 2004 14:49:18 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 4 Jan 2004 06:49:20 -0800 Received: from 69.22.108.125 by sea1fd.sea1.hotmail.msn.com with HTTP; Sun, 04 Jan 2004 14:49:19 GMT X-Originating-IP: [69.22.108.125] X-Originating-Email: [cutmancw@hotmail.com] X-Sender: cutmancw@hotmail.com From: "CUTMAN ~CW~" To: users@httpd.apache.org Bcc: Date: Sun, 04 Jan 2004 09:49:19 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 04 Jan 2004 14:49:20.0384 (UTC) FILETIME=[EF73B000:01C3D2D1] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: Re: [users@httpd] encoding problem X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N > >Pedro Salgueiro wrote: >>Hi. >> >>I have made a script in php that calls a java program. >>This java program will make a connection to a >>PostgreSQL db and do some operations. That java >>program works just fine if I run it on a console, but >>when it is php to run it gives errors related to the >>charset encoding. >>The error that apears in "error.log" is the following: >> >>Java.sql.SQLException: ERROR: Could not convert UTF-8 >>to ISO8859-1 >> >>I think that the problem is than Apache or PHP is >>runing the java program with UTF-8 encoding, while it >>should be running with iso8859-1. >> >>Does anyone knows how to solve this problem? >> >>Thanks. >>Pedro Salgueiro. > >What about doing the "operations" with php? It seems to me that it would >be much faster and less complex to do that. > > >-- >Aaron W Morris (decep) > I'd have no clue about how to solve the problem cause I don't know what I'm doing, but I found this in my Apache .conf file.. # Specify a default charset for all pages sent out. This is # always a good idea and opens the door for future internationalisation # of your web site, should you ever want it. Specifying it as # a default does little harm; as the standard dictates that a page # is in iso-8859-1 (latin1) unless specified otherwise i.e. you # are merely stating the obvious. There are also some security # reasons in browsers, related to javascript and URL parsing # which encourage you to always set a default char set. # #AddDefaultCharset ISO-8859-1 AddDefaultCharset UTF-8 and these 2 lines too: AddCharset ISO-8859-1 .iso8859-1 .latin1 AddCharset UTF-8 .utf8 Maybe you have something like it. You think it does anything? I was scared to mess with it cause some things seem to be working for me. HTH, Scott _________________________________________________________________ Get reliable dial-up Internet access now with our limited-time introductory offer. http://join.msn.com/?page=dept/dialup --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org