Re: BUG #4198: The bugreport form has an encoding problem

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: BUG #4198: The bugreport form has an encoding problem
Дата
Msg-id 20080605231334.GU16502@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: BUG #4198: The bugreport form has an encoding problem  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #4198: The bugreport form has an encoding problem
Следующее
От: Gregory Stark
Дата:
Сообщение: Re: BUG #4198: The bugreport form has an encoding problem