Re: BUG #4198: The bugreport form has an encoding problem - Mailing list pgsql-bugs

From Alvaro Herrera
Subject Re: BUG #4198: The bugreport form has an encoding problem
Date
Msg-id 20080605231334.GU16502@alvh.no-ip.org
Whole thread Raw
In response to Re: BUG #4198: The bugreport form has an encoding problem  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
Tom Lane wrote:
> Alvaro Herrera <alvherre@commandprompt.com> writes:
> > It does have a problem, because the email sent does not contain a
> > charset header.  It does look OK for me too -- as long as I use a UTF8
> > terminal.  The fix is easy, just add this line to the message headers:
>
> > Content-Type: text/plain; charset=utf-8
>
> What happens if someone pastes text into the form that is *not* in UTF-8?

AFAIK the browser sends the encoding along the request and a conversion
takes place somewhere.  (If I'm mistaken, then the thing to do is
grab the encoding from the POST request.)

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #4198: The bugreport form has an encoding problem
Next
From: Gregory Stark
Date:
Subject: Re: BUG #4198: The bugreport form has an encoding problem