You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Yves Vindevogel <yv...@implements.be> on 2004/03/01 17:34:39 UTC

RE: Non-Ascii from Postgres

The encoding thing does not help.  Could this be a bug in 2.1.(4) ?

I checked my connection, it includes charSet=iso-8859-1.
I checked every single file, all have iso-8859-1.

Is there content in the database that cannot be depicted ?

-----Original Message-----
From: Yves Vindevogel [mailto:yves.vindevogel@implements.be]
Sent: zondag 29 februari 2004 22:35
To: users@cocoon.apache.org; yves.vindevogel@implements.be
Subject: RE: Non-Ascii from Postgres


The <encoding>iso-8859-1</encoding> tag is in my sitemap.

I only have the error on Cocoon 2.1.4 (Jetty on 8888)
When I use another machine that still uses 2.0.xx, with the same database,
it works.

-----Original Message-----
From: Yves Vindevogel [mailto:yves.vindevogel@implements.be]
Sent: zondag 29 februari 2004 22:15
To: users@cocoon.apache.org
Subject: Non-Ascii from Postgres


Hi,

I get this error from Cocoon 2.1.

org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate():
org.apache.avalon.framework.CascadingRuntimeException: Error getting ascii
data for column namenl


It happens when I get non-ascii data from my database.
I only have it on Cocoon 2.1.

I know I have to change the content-type somewhere in my sitemap, but I've
forgotten where.

Somebody a quick hint ??

Yves



-----Original Message-----
From: Yves Vindevogel [mailto:yves.vindevogel@implements.be]
Sent: zondag 29 februari 2004 20:04
To: users@cocoon.apache.org
Subject: RE: deleting file


Yes, you are right about that, but this command gives you access to all the
shell commands.

-----Original Message-----
From: Geoff Howard [mailto:cocoon@leverageweb.com]
Sent: zondag 29 februari 2004 19:58
To: users@cocoon.apache.org
Subject: Re: deleting file


Yves Vindevogel wrote:

>Got this once .... but you can read what Steven Noels thinks about it ...
>
>Yves Vindevogel wrote:
>
>
>>Is there anything within Cocoon that interacts with the (*nix)-shell ?
>>Or a way to do this ?
>>
>>
>
>System.exec() from Java, but evil as hell. Don't!!!
>
></Steven>
>
>

Not sure what that has to do with deleting a file?  A java.io.File
object has a delete() method which has always worked quite well for me!
See http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html

What Stephen was referring to was executing arbitrary shell executables
which is of course non-portable across OSs and has deadlock issues
(though they can be worked around to a great degree).  It's also
aesthetically at odds with the general Java paradigm and so should
really be a last resort.

Geoff

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



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



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



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



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