cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Piroumian, Konstantin" <KPiroum...@flagship.ru>
Subject Re: [C2] Windows-1251 encoding
Date Tue, 06 Mar 2001 16:12:34 GMT
Oops.
Sorry, I thought that it was direct address.
The main idea of the answer is to set encoding in cocoon.properties or use:
<xsp:logic>
    response.setContentType("text/html;charset=windows-1251");
</xsp:logic>
and
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251"/>
in your formatting XSL.

Regards,
    Konstantin Piroumian.


----- Original Message -----
From: "Piroumian, Konstantin" <KPiroumian@flagship.ru>
To: <cocoon-users@xml.apache.org>; "Igor Romanov" <rio@nizhny.ru>
Sent: Tuesday, March 06, 2001 5:34 PM
Subject: Re: [C2] Windows-1251 encoding


Я использую без проблем.
Можно в cocoon.properties задать encoding (там как раз есть пример
с 1251)
или можно исходники писать в UTF-8, а при генерации страницы
задавать:
response.setContentType("text/html;charset=windows-1251");
И еще нужно прописать мета-тэг в HTML, чтобы браузер
правильно отображал:
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251"/>

Best regards,

Konstantin Piroumian
Software engineer

Protek Flagship LLC
Phone: + 7 095 795 0520 (add. 1288)
Fax: + 7 095 795 0525
E-mail: kpiroumian@flagship.ru
http://www.protek.com

----- Original Message -----
From: "Igor Romanov" <rio@nizhny.ru>
To: <cocoon-users@xml.apache.org>
Sent: Saturday, March 03, 2001 5:56 PM
Subject: [C2] Windows-1251 encoding


> Hello cocoon-users,
>
>   I was searching through archives, but still can't find an answer:
>
>   How can I use Windows-1251 encoding in my XML/XSL files and in
>   my generator? Right now I get an error from Xerces in Cocoon's log
>   file... Thanks!
>
> --
> Cheers...
> RiO                          mailto:rio@nizhny.ru
>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message