[lug] OT: Saving Greek in Postgresql

rm at fabula.de rm at fabula.de
Thu Apr 18 06:11:21 MDT 2002


On Thu, Apr 18, 2002 at 01:00:54AM -0600, John Starkey wrote:
> On Wed, 2002-04-10 at 07:00, rm at fabula.de wrote:
> > On Wed, Apr 10, 2002 at 04:00:22AM -0600, D. Stimits wrote:
> > Might be an awfully silly question, but how is the encoding of the HTML
> > input form set?
> > 
> > I'd also second D. doubts about PHP's type safeness.
> > Could you look at a dump of your request when it comes in to see how
> > the data actually is encoded (i use tcpdump/ethereal for that)?
> 
> Sorry for the incredible delay in getting back to this. I'm in the
> middle of a move and trying to finish up a few projects.
> 
> I went in and recoded the php file to echo the form vars. It came back
> as nonsense. The form is XHTML 1 and encoded UTF-8. I'm wondering now
> whether Apache is cramming the data. Is there a setting in apache for
> locales? I've tried the languages setting, but nothing changed and it
> didn't really make sense that it'd be related. I guess research on that
> end is the next step.

Hmmm, i doubt it's apache. If you use PHP then the PHP module will handle 
form decoding, apache will only pass a pointer to the query string (or an
input stream in case you use POST or a bucket brigade in Apache 2) to
the module.

I'd check the data that is sent to the server (tcpdump and ethereal).
You could also point your form to a different reciever (maybe a short 
CGI program that dumps all query data to a file).

  Ralf

> Thanks much.
> 
> John
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug



More information about the LUG mailing list