Pff, I'm clueless ...

I added <encoding>ISO-8859-1</encoding> almost everywhere in my sitemap.
Still, both HTML and XML serializer return plain "?" instead of my "é" or
"à".
It will not return any non-ascii chars.

My dburl is  ...mydatabase?charSet=ISO-8859-1, so that's okay, right.

Is there any place else I have to add this fu**** encoding ?

Anyway, Cocoon 2.0 did not have the problem.  Maybe I should switch back ?
It's frustrating when you can't rely on things to work the way did worked
before.

-----Original Message-----
From: Yves Vindevogel [mailto:[EMAIL PROTECTED]
Sent: zaterdag 6 maart 2004 20:07
To: [EMAIL PROTECTED]
Subject: Bug in ServerPages Generator ??


Hi,

I'm still searching on this ... I think it could be a bug ...

Exception in ServerPagesGenerator.generate()

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

cause: org.postgresql.util.PSQLException: Invalid character data was found.
This is most likely caused by stored data containing characters that are
invalid for the character set the database was created in. The most common
example of this is storing 8bit data in a SQL_ASCII database.


This is my data where it goes wrong ...
id      namenl
neupre  Neupré

When I remove the é, it works.  I do not get the error.
However, I have another record ...

id      namenl
niverlee        Niverlée

This is the exact same charachter (é), and there it works.
No problem at all ....

Moreover, I only have the problem on my Cocoon 2.1.4 and not on 2.0.x.
Therefore, I suspect a bug ...

Help please ??




-----Original Message-----
From: Yves Vindevogel [mailto:[EMAIL PROTECTED]
Sent: zondag 29 februari 2004 22:35
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
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:[EMAIL PROTECTED]
Sent: zondag 29 februari 2004 22:15
To: [EMAIL PROTECTED]
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:[EMAIL PROTECTED]
Sent: zondag 29 februari 2004 20:04
To: [EMAIL PROTECTED]
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:[EMAIL PROTECTED]
Sent: zondag 29 februari 2004 19:58
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to