cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Magnus Haraldsen Amundsen" <Magnus.Haraldsen.Amund...@computas.com>
Subject RE: Cocoon, JX Temaplte and UTF-8
Date Thu, 28 Feb 2008 13:30:36 GMT
We use a spring-apples, in this case a StatelessAppleController, instead
of FlowScript, and the code looks like this:

http://pastebin.com/m571480c6

I've highlighted the lines that I think could have effect on the
encoding.

The strange thing is that this code works just fine on a Linux machine,
but not on my Windows machine. Probably because of different default
system encoding. 

The "result-list" in the Map is later on used in a jx-template like
this:

<jx:out value="#{result-list}" xmlize="true"
xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"/>

If that jx-template could read byte arrays into text, that would solve
it I think, but I haven't found any ways to do that.

- Magnus



-----Original Message-----
From: Joerg Heinicke [mailto:joerg.heinicke@gmx.de] 
Sent: 28. februar 2008 14:12
To: users@cocoon.apache.org
Subject: Re: Cocoon, JX Temaplte and UTF-8

> Maybe this could be solved by using some other Output/InputStream or
something?

Could it be that the Model.write() already does some conversion? You can

try to write it directly into an FileOutputStream and try to figure out 
in which encoding it is (put some special characters into the RDF). Can 
you show a few more details like the Javascript code?

Joerg
IMPORTANT NOTICE:
This message may contain confidential information. 
If you have received this e-mail in error, do not use, copy or 
distribute it. Do not open any attachments. Delete it immediately from
your system and notify the sender promptly by e-mail that you 
have done so. Thank you.


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


Mime
View raw message