You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Ricardo Rocha <ri...@apache.org> on 2000/05/07 03:00:24 UTC

I18n in XSP

Encodings other than the platform's default can now be specified in
XSP by means of the "processor.xsp.encoding" configuration property
specified in the "cocoon.properties" configuration file:

  # Set Russian encoding
  processor.xsp.encoding = Cp1251

If specified, this encoding will be used for code generation and
compilation. This has been successfully tested only with Russian
under Blackdown's JDK1.2. 

If omitted, the default platform's encoding will be used.

Encodings should be specified in 3 contexts:

1) cocoon.properties:
    processor.xsp.encoding = Cp1251

2) The XSP page XML declaration
    <?xml version="1.0" encoding="Cp1251"?>

3) The XSLT stylesheet "output" top element:
    <xsl:output method="html" indent="no" encoding="Cp1251"/>

Thanks to Pavel Karassev for this update.