Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 85747 invoked from network); 2 Aug 2005 15:53:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Aug 2005 15:53:28 -0000 Received: (qmail 41739 invoked by uid 500); 2 Aug 2005 15:53:18 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 41725 invoked by uid 500); 2 Aug 2005 15:53:18 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 41700 invoked by uid 99); 2 Aug 2005 15:53:17 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Aug 2005 08:53:17 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [209.198.128.91] (HELO smtp.io.com) (209.198.128.91) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Aug 2005 08:53:08 -0700 Received: from eris.io.com (gedanken@eris.io.com [209.198.128.88]) by smtp.io.com (8.13.3/8.13.3) with ESMTP id j72FrDlq068969 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 2 Aug 2005 10:53:13 -0500 (CDT) (envelope-from gedanken@io.com) Date: Tue, 2 Aug 2005 10:53:13 -0500 (CDT) From: Gedanken To: Thom Hehl cc: modperl@perl.apache.org Subject: Re: CGI character translation??? In-Reply-To: <42EF7AFB.9010403@nowhereatall.com> Message-ID: <20050802105141.X22719@eris.io.com> References: <42EF7AFB.9010403@nowhereatall.com> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-803383603-1122997993=:22719" X-Virus-Scanned: ClamAV version 0.86.2, clamav-milter version 0.86 on smtp.io.com X-Virus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-803383603-1122997993=:22719 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT On Tue, 2 Aug 2005, Thom Hehl wrote: Possibly the LANG environment variable for the user you test with is not the same as the LANG var for the user the webserver runs as? I had a similar thing i tried to debug a few weeks ago. I couldnt 'su' to the user 'nobody' which was annoying so it took some time to figure out it was an environ problem. ged OK, not exactly perl, but this was the closest list I could find. I am running a perl CGI script that launches a java program. This java program writes output files that are delimited using what I believe to be a unicode character. On most editors it looks like an upside-down question mark, which I believe is correct. On some editors, it shows as a degree symbol. This character is represented by the hex pair 0xc2a1. Here is the character '�'. Now here is the problem. When I test my java program everything is great. When I test the perl script to launch the java program, all is still well. When I run my perl script through CGI, though, it replaces each occurrence of the above character with ??. I cannot understand why the CGI is interfering with file output from my program. This is not going through display, but is directly writing this file. Anyone have any ideas? Also, if anyone can suggest a better list, I'd appreciate that too. Thanks. -- gedanken --0-803383603-1122997993=:22719--