cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ilya A. Kriveshko" <>
Subject Re: Encoding of the document
Date Mon, 21 Aug 2000 18:26:48 GMT

I had gone through the same hurdle, and the it appears that the only way
to get all the "special" characters preserved is to set the encoding for all
the processes along the chain that your document travels. In my case it

processor.xsp.encoding = UTF-8
formatter.text/xml.encoding = UTF-8
formatter.text/html.encoding = UTF-8

Notice, that XSP outputs XML, which is what the second line is for.

I think we ought to be able to specify the encoding at runtime by setting
the encoding attribute of the <?cocoon-process?> tag, but it just doesn't
seem to work in 1.7.4.

"Sergei O . Naumov" wrote:

> Folks:
> I have seen this question in the FAQ but, it seems, that this thing still does
> not work
> for me. I have all the Cocoon infrastructure installed and it is running just
> fine.
> But... when I try to use non ASCII documents I get only ????'s on the screen.
> The docs
> and the FAQ suggest to specify the encoding in processor.xsp.encoding in
> which I did and nothing happened. Then I added encoding=KOI8_R in my <?xml>
> directive. This
> helped a bit: correct letters started to appear in *.java (they were not there
> before)
> files but still I can see only ????'s in my browser. I am sure this question
> must have come
> up before but I surely can't find any hint on that.
> Thanks a lot in advance,
>                         Sergei
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View raw message