You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Jonathan Linczak <li...@hiram.edu> on 2004/06/18 15:31:38 UTC
Kupu fix for odd characters?
All,
Found this in the FAQ docs for Kupu, and understand it fully, just
don't know where to make the change in Lenya to get this fixed. Can
someone point me in the right direction? Thanks!
* Why do I get all kinds of weird characters?
Kupu seems to work correctly when you use UTF-8 as the character set
for
encoding, but gives unpredictable results when you use another one
such
as latin-1 (ISO-8859-1). Make sure to always use UTF-8 as the
character
set for incoming data and set the correct Content-Type header or
meta-tag,
and Kupu will send back UTF-8 data.
Jon
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: Kupu fix for odd characters?
Posted by Jonathan Linczak <li...@hiram.edu>.
Anyone following this thread as a user... I figured I would update my
status on this issue. It turns out that I sent the file being
generated by Kupu to Jean Pierre, and he found the accented A character
added in, and suggested a couple of methods, including checking with
the Kupu mailing list, and the Cocoon mailing list for someone to
create a regex Transformer to remove these characters before
publishing. The last option given was to update to the CVS package of
Lenya 1.2.
I also updated Tomcat to 5 and whether it was the combination of the 2
or just 1, the accented A characters are no more. So, as a suggestion,
please upgrade to the latest CVS version of Lenya and the latest Tomcat
5 release and this might just resolve this issue for you too. :)
Thanks to all those that helped me out!
Jon
On Jun 22, 2004, at 2:31 PM, Jonathan Linczak wrote:
> Jean Pierre,
>
>
>
> I created a document in Kupu with simultaneous spaces to make sure I
> get the strange characters in Kupu again when I edit it. So, it does
> insert the character entity for a space when I view the page in the
> Authoring section. Kupu shows it as an A with an accent mark, the
> Forms editor doesn't show it at all, and neither does the 1 Form
> editor. It seems to be only an issue in Kupu. Was that what you were
> asking for?
>
>
>
> Jon
>
>
>
> On Jun 21, 2004, at 4:34 PM, Jean Pierre LeJacq wrote:
>
>
>
> On Mon, 21 Jun 2004, Jonathan Linczak wrote:
>
>
>
> > Jean Pierre, I can easily create the strange characters just by
> adding
>
> > two spaces to the text, one after another. When I save the document
>
> > for the first time, the document in the authoring view does not show
>
> > the strange characters. When looking at the source, the first of
> those
>
> > 2 spaces is marked up as a , which I guess is ok, although I
>
> > would rather have it just remove the extra whitespace and make it one
>
> > space, but that's outside the realm of this mailing list.
>
> >
>
> > Anyway, then, going back into the editor, those spaces marked as
>
>
> > are replaced with the accented A characters in the editor.
> Subsequent
>
> > saving without removing the strange characters means they are then
>
> > added to the document and are viewable in the authoring environment.
>
>
>
> Hmmm, entity resolution can be an issue. Is there a way of
>
> configuring kupu to use character codes instead of entities? It may
>
> be that the forms editor is doing this conversion. What is the
>
> resulting html from the forms editor?
>
>
>
> --
>
> JP
>
>
>
>
>
>
> ---------------------------------------------------------------------
>
> To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
>
> For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: Kupu fix for odd characters?
Posted by Jonathan Linczak <li...@hiram.edu>.
Jean Pierre,
I created a document in Kupu with simultaneous spaces to make sure I
get the strange characters in Kupu again when I edit it. So, it does
insert the character entity for a space when I view the page in the
Authoring section. Kupu shows it as an A with an accent mark, the
Forms editor doesn't show it at all, and neither does the 1 Form
editor. It seems to be only an issue in Kupu. Was that what you were
asking for?
Jon
On Jun 21, 2004, at 4:34 PM, Jean Pierre LeJacq wrote:
> On Mon, 21 Jun 2004, Jonathan Linczak wrote:
>
> > Jean Pierre, I can easily create the strange characters just by
> adding
> > two spaces to the text, one after another. When I save the document
> > for the first time, the document in the authoring view does not show
> > the strange characters. When looking at the source, the first of
> those
> > 2 spaces is marked up as a , which I guess is ok, although I
> > would rather have it just remove the extra whitespace and make it
> one
> > space, but that's outside the realm of this mailing list.
> >
> > Anyway, then, going back into the editor, those spaces marked as
>
> > are replaced with the accented A characters in the editor.
> Subsequent
> > saving without removing the strange characters means they are then
> > added to the document and are viewable in the authoring environment.
>
> Hmmm, entity resolution can be an issue. Is there a way of
> configuring kupu to use character codes instead of entities? It may
> be that the forms editor is doing this conversion. What is the
> resulting html from the forms editor?
>
> --
> JP
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: Kupu fix for odd characters?
Posted by Jean Pierre LeJacq <jp...@quoininc.com>.
On Mon, 21 Jun 2004, Jonathan Linczak wrote:
> Jean Pierre, I can easily create the strange characters just by adding
> two spaces to the text, one after another. When I save the document
> for the first time, the document in the authoring view does not show
> the strange characters. When looking at the source, the first of those
> 2 spaces is marked up as a , which I guess is ok, although I
> would rather have it just remove the extra whitespace and make it one
> space, but that's outside the realm of this mailing list.
>
> Anyway, then, going back into the editor, those spaces marked as
> are replaced with the accented A characters in the editor. Subsequent
> saving without removing the strange characters means they are then
> added to the document and are viewable in the authoring environment.
Hmmm, entity resolution can be an issue. Is there a way of
configuring kupu to use character codes instead of entities? It may
be that the forms editor is doing this conversion. What is the
resulting html from the forms editor?
--
JP
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: Kupu fix for odd characters?
Posted by Jonathan Linczak <li...@hiram.edu>.
Jean Pierre, I can easily create the strange characters just by adding
two spaces to the text, one after another. When I save the document
for the first time, the document in the authoring view does not show
the strange characters. When looking at the source, the first of those
2 spaces is marked up as a , which I guess is ok, although I
would rather have it just remove the extra whitespace and make it one
space, but that's outside the realm of this mailing list.
Anyway, then, going back into the editor, those spaces marked as
are replaced with the accented A characters in the editor. Subsequent
saving without removing the strange characters means they are then
added to the document and are viewable in the authoring environment.
Does this help?
Jon
On Jun 21, 2004, at 2:58 PM, Jean Pierre LeJacq wrote:
> On Mon, 21 Jun 2004, Jonathan Linczak wrote:
>
> > I only see Accept-Charset, not the one that was actually used? Plus,
> > strange characters are still posting... :(
>
> If you just load the document in a browser (not in the editor), do
> you see the strange characters? What does the document info tab
> show in Mozilla?
>
> Send the page to me and I'll take a look.
>
> --
> JP
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: Kupu fix for odd characters?
Posted by Jean Pierre LeJacq <jp...@quoininc.com>.
On Mon, 21 Jun 2004, Jonathan Linczak wrote:
> I only see Accept-Charset, not the one that was actually used? Plus,
> strange characters are still posting... :(
If you just load the document in a browser (not in the editor), do
you see the strange characters? What does the document info tab
show in Mozilla?
Send the page to me and I'll take a look.
--
JP
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: Kupu fix for odd characters?
Posted by Jonathan Linczak <li...@hiram.edu>.
Well,
Here's what I get in HTTP headers when posting new info in Kupu:
------------------------------------------------------------------------
------
http://wwwdev.hiram.edu:8080/lenya/hiram/authoring/index.html?
lenya.usecase=kupu&lenya.step=save
PUT
/lenya/hiram/authoring/index.html?lenya.usecase=kupu&lenya.step=save
HTTP/1.1
Host: wwwdev.hiram.edu:8080
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US;
rv:1.7) Gecko/20040616
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/
plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Content-Type: application/xhtml+xml
Content-Length: 1549
Cookie: JSESSIONID=35E1EED3F46B9D49D4E2DFFF0FF4E443
Pragma: no-cache
Cache-Control: no-cache
<html>HTML stuff here</html>
HTTP/1.x 204 No Content
X-Cocoon-Version: 2.1.5
Date: Mon, 21 Jun 2004 17:02:35 GMT
Server: Apache-Coyote/1.1
------------------------------------------------------------------------
--------
I only see Accept-Charset, not the one that was actually used? Plus,
strange characters are still posting... :(
Jon
On Jun 21, 2004, at 1:02 PM, Gregor J. Rothfuss wrote:
> Jonathan Linczak wrote:
>
> > Ah, I see. So if I go back into the Kupu editor again and try to
> edit a
> > document, it should post with UTF-8, hopefully clearing up the A
> accent
> > character always being added?
> >
> > My Tomcat version is 4.1.29-LE-jdk14.
>
> thats my hope ;)
>
> --
> Gregor J. Rothfuss
> Wyona Inc. - Open Source Content Management - Apache Lenya
> http://wyona.com http://cocoon.apache.org/lenya
> gregor.rothfuss@wyona.com gregor@apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: Kupu fix for odd characters?
Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Jonathan Linczak wrote:
> Ah, I see. So if I go back into the Kupu editor again and try to edit a
> document, it should post with UTF-8, hopefully clearing up the A accent
> character always being added?
>
> My Tomcat version is 4.1.29-LE-jdk14.
thats my hope ;)
--
Gregor J. Rothfuss
Wyona Inc. - Open Source Content Management - Apache Lenya
http://wyona.com http://cocoon.apache.org/lenya
gregor.rothfuss@wyona.com gregor@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: Kupu fix for odd characters?
Posted by Jonathan Linczak <li...@hiram.edu>.
Ah, I see. So if I go back into the Kupu editor again and try to edit
a document, it should post with UTF-8, hopefully clearing up the A
accent character always being added?
My Tomcat version is 4.1.29-LE-jdk14.
Jon
On Jun 21, 2004, at 12:56 PM, Gregor J. Rothfuss wrote:
> Jonathan Linczak wrote:
>
> > OK, call me an idiot...
> >
> > I set up CATALINA_OPTS just like you said, as the following
> >
> > CATALINA_OPTS=-Dfile.encoding=UTF-8
> > export CATALINA_OPTS
> >
> > then restarted Tomcat, and checked any pages on port 8080, and they
> are
> > all coming out as charset ISO-8859-1. Am I missing something here?
>
> its the encoding used for POST requests. btw, what tomcat version?
> there
> was some issue with cocoon serialization and tomcat encoding in 4.1.30
> i
> think.
>
> --
> Gregor J. Rothfuss
> Wyona Inc. - Open Source Content Management - Apache Lenya
> http://wyona.com http://cocoon.apache.org/lenya
> gregor.rothfuss@wyona.com gregor@apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: Kupu fix for odd characters?
Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Jonathan Linczak wrote:
> OK, call me an idiot...
>
> I set up CATALINA_OPTS just like you said, as the following
>
> CATALINA_OPTS=-Dfile.encoding=UTF-8
> export CATALINA_OPTS
>
> then restarted Tomcat, and checked any pages on port 8080, and they are
> all coming out as charset ISO-8859-1. Am I missing something here?
its the encoding used for POST requests. btw, what tomcat version? there
was some issue with cocoon serialization and tomcat encoding in 4.1.30 i
think.
--
Gregor J. Rothfuss
Wyona Inc. - Open Source Content Management - Apache Lenya
http://wyona.com http://cocoon.apache.org/lenya
gregor.rothfuss@wyona.com gregor@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: Kupu fix for odd characters?
Posted by Jonathan Linczak <li...@hiram.edu>.
OK, call me an idiot...
I set up CATALINA_OPTS just like you said, as the following
CATALINA_OPTS=-Dfile.encoding=UTF-8
export CATALINA_OPTS
then restarted Tomcat, and checked any pages on port 8080, and they are
all coming out as charset ISO-8859-1. Am I missing something here?
Jon
On Jun 21, 2004, at 12:33 PM, Gregor J. Rothfuss wrote:
> Jonathan Linczak wrote:
> > Hi Jean Pierre,
> >
> > It appears that Tomcat is spitting out documents with the charset =
> > ISO-8859-1. I was looking through documentation for Tomcat and
> couldn't
> > find anywhere where the character set could be changed. Would you
> know
> > where Tomcat has this configured?
>
> CATALINA_OPTS=-Dfile.encoding=ISO-8859-1
>
> --
> Gregor J. Rothfuss
> Wyona Inc. - Open Source Content Management - Apache Lenya
> http://wyona.com http://cocoon.apache.org/lenya
> gregor.rothfuss@wyona.com gregor@apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: Kupu fix for odd characters?
Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Jonathan Linczak wrote:
> Hi Jean Pierre,
>
> It appears that Tomcat is spitting out documents with the charset =
> ISO-8859-1. I was looking through documentation for Tomcat and couldn't
> find anywhere where the character set could be changed. Would you know
> where Tomcat has this configured?
CATALINA_OPTS=-Dfile.encoding=ISO-8859-1
--
Gregor J. Rothfuss
Wyona Inc. - Open Source Content Management - Apache Lenya
http://wyona.com http://cocoon.apache.org/lenya
gregor.rothfuss@wyona.com gregor@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: Kupu fix for odd characters?
Posted by Jonathan Linczak <li...@hiram.edu>.
Hi Jean Pierre,
It appears that Tomcat is spitting out documents with the charset =
ISO-8859-1. I was looking through documentation for Tomcat and
couldn't find anywhere where the character set could be changed. Would
you know where Tomcat has this configured?
Jon
On Jun 19, 2004, at 4:18 PM, Jean Pierre LeJacq wrote:
> On Fri, 18 Jun 2004, Jonathan Linczak wrote:
>
> > Looks like Andreas already pointed out some bug reports for this one.
> > If there is a known solution, is there any way I can contribute to
> get
> > this fixed?
>
> Another thing to check is the configuration of Tomcat. I suggest
> you first make sure that tomcat returns the proper charset using a
> few static test html files. Only after you have tomcat configured
> properly should you move onto cocoon/lenya.
>
> If you're using apache to proxy tomcat, make sure its properly
> configured as well.
>
> --
> Jean Pierre
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: Kupu fix for odd characters?
Posted by Jean Pierre LeJacq <jp...@quoininc.com>.
On Fri, 18 Jun 2004, Jonathan Linczak wrote:
> Looks like Andreas already pointed out some bug reports for this one.
> If there is a known solution, is there any way I can contribute to get
> this fixed?
Another thing to check is the configuration of Tomcat. I suggest
you first make sure that tomcat returns the proper charset using a
few static test html files. Only after you have tomcat configured
properly should you move onto cocoon/lenya.
If you're using apache to proxy tomcat, make sure its properly
configured as well.
--
Jean Pierre
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: Kupu fix for odd characters?
Posted by Jonathan Linczak <li...@hiram.edu>.
Looks like Andreas already pointed out some bug reports for this one.
If there is a known solution, is there any way I can contribute to get
this fixed?
We're evaluating this for our new website, and I think more people
would be using Kupu over BXE just because it runs on IE (I know, I
know). Getting this fixed would be a top priority for me to make sure
I don't get a million phone calls asking why they keep getting all
these A's in their documents, and, God forbid, on their web page! :)
Jon
On Jun 18, 2004, at 10:51 AM, Gregor J. Rothfuss wrote:
> Jonathan Linczak wrote:
>
> > So, it begs the question, do I need to add another tag here for
> > encoding? I searched the doc for an encoding tag, but only found
> the
> > one I mentioned before, which already has UTF-8 in it.
>
> it increasingly sounds like a bug. can you file one so this won't get
> forgotten?
>
> http://nagoya.apache.org/bugzilla/enter_bug.cgi?product=Lenya
>
> --
> Gregor J. Rothfuss
> Wyona Inc. - Open Source Content Management - Apache Lenya
> http://wyona.com http://cocoon.apache.org/lenya
> gregor.rothfuss@wyona.com gregor@apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: Kupu fix for odd characters?
Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Jonathan Linczak wrote:
> So, it begs the question, do I need to add another tag here for
> encoding? I searched the doc for an encoding tag, but only found the
> one I mentioned before, which already has UTF-8 in it.
it increasingly sounds like a bug. can you file one so this won't get
forgotten?
http://nagoya.apache.org/bugzilla/enter_bug.cgi?product=Lenya
--
Gregor J. Rothfuss
Wyona Inc. - Open Source Content Management - Apache Lenya
http://wyona.com http://cocoon.apache.org/lenya
gregor.rothfuss@wyona.com gregor@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: Kupu fix for odd characters?
Posted by Jonathan Linczak <li...@hiram.edu>.
OK, downloaded LiveHTTPHeaders (awesome package), and got the following
when opening up with Kupu with one of the documents:
----------------------------------------------------------
http://wwwdev.hiram.edu:8080/lenya/hiram/authoring/index.html?
lenya.usecase=kupu&lenya.step=content
GET
/lenya/hiram/authoring/index.html?lenya.usecase=kupu&lenya.step=content
HTTP/1.1
Host: wwwdev.hiram.edu:8080
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US;
rv:1.6) Gecko/20040113
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/
plain;q=0.8,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer:
http://wwwdev.hiram.edu:8080/lenya/hiram/authoring/index.html?
&lenya.event=edit&lenya.usecase=kupu&lenya.step=open
Cookie: JSESSIONID=86BF215B0FAB4640727B923D3AFD08A1
HTTP/1.x 200 OK
X-Cocoon-Version: 2.1.5
Content-Type: text/html;charset=ISO-8859-1
Transfer-Encoding: chunked
Date: Fri, 18 Jun 2004 14:15:12 GMT
Server: Apache-Coyote/1.1
----------------------------------------------------------
So, it does look like ISO-8859-1 is still being used. I checked
usecase.xmap and found nothing under the "open" section of Kupu that
dealt with encoding, however. Here's a snap of the first part of the
open area:
<map:match pattern="kupu" type="usecase">
<map:match pattern="open" type="step">
<map:match pattern="*/authoring/**.html">
<!-- Check for Kupu-->
<map:act type="resource-exists"
src="resources/kupu/common/kupueditor.js">
<map:act type="reserved-checkout">
<map:generate type="serverpages"
src="content/rc/{exception}.xsp">
<map:parameter name="user" value="{user}"/>
<map:parameter name="filename" value="{filename}"/>
<map:parameter name="date" value="{date}"/>
</map:generate>
So, it begs the question, do I need to add another tag here for
encoding? I searched the doc for an encoding tag, but only found the
one I mentioned before, which already has UTF-8 in it.
Jon
On Jun 18, 2004, at 10:03 AM, Gregor J. Rothfuss wrote:
> Jonathan Linczak wrote:
>
> > Looks like my encoding is already set to UTF-8, yet I still get the
> > strange characters (A with an accent mark). Has anyone else had this
> > problem, or am I missing something in this document that need to be
> > changed?
>
> to make sure you have UTF-8, download livehttpheaders.mozdev.org
> and look at that page. also, if memory serves, the pipeline you looked
> at is for saving, not for loading. i think there is one for "open"
> you'd
> need to look at.
>
> --
> Gregor J. Rothfuss
> Wyona Inc. - Open Source Content Management - Apache Lenya
> http://wyona.com http://cocoon.apache.org/lenya
> gregor.rothfuss@wyona.com gregor@apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: Kupu fix for odd characters?
Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Jonathan Linczak wrote:
> Looks like my encoding is already set to UTF-8, yet I still get the
> strange characters (A with an accent mark). Has anyone else had this
> problem, or am I missing something in this document that need to be
> changed?
to make sure you have UTF-8, download livehttpheaders.mozdev.org
and look at that page. also, if memory serves, the pipeline you looked
at is for saving, not for loading. i think there is one for "open" you'd
need to look at.
--
Gregor J. Rothfuss
Wyona Inc. - Open Source Content Management - Apache Lenya
http://wyona.com http://cocoon.apache.org/lenya
gregor.rothfuss@wyona.com gregor@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org
AW: Kupu fix for odd characters?
Posted by Christian Kreutz <sc...@gmx.de>.
I have the exact same problem but only with Explorer.
With Mozialla or Firebird it is allright.
On Jun 18, 2004, at 9:36 AM, Gregor J. Rothfuss wrote:
Jonathan Linczak wrote:
> All,
>
> Found this in the FAQ docs for Kupu, and understand it fully, just
don't
> know where to make the change in Lenya to get this fixed. Can someone
> point me in the right direction? Thanks!
>
> * Why do I get all kinds of weird characters?
>
> Kupu seems to work correctly when you use UTF-8 as the character set
for
> encoding, but gives unpredictable results when you use another one
such
> as latin-1 (ISO-8859-1). Make sure to always use UTF-8 as the
character
> set for incoming data and set the correct Content-Type header or
> meta-tag,
> and Kupu will send back UTF-8 data.
look into usecase.xmap. you'll find kupu pipelines in there, where you
can set the encoding. at some point, we need to change all of lenya to
utf-8 anyway.
--
Gregor J. Rothfuss
Wyona Inc. - Open Source Content Management - Apache Lenya
http://wyona.com http://cocoon.apache.org/lenya
gregor.rothfuss@wyona.com gregor@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: Kupu fix for odd characters?
Posted by Jonathan Linczak <li...@hiram.edu>.
Strange, I just checked out the file and found something like this:
<map:generators default="file">
<map:generator label="content,data"
logger="sitemap.generator.kupustream" name="kupustream" pool-grow="2"
pool-max="16" pool-min="1"
src="org.apache.lenya.cms.cocoon.generation.StreamGenerator"/>
</map:generators>
<map:transformers default="xslt"/>
<map:readers default="resource"/>
<map:serializers default="xhtml">
<map:serializer logger="sitemap.serializer.htmlnoi"
mime-type="text/html" name="htmlnoi" pool-grow="4" pool-max="32"
pool-min="4" src="org.apache.cocoon.serialization.HTMLSerializer">
<indent>no</indent>
<doctype-public>-//W3C//DTD HTML 4.01
Transitional//EN</doctype-public>
<doctype-system>http://www.w3.org/TR/html4/loose.dtd</doctype-system>
<encoding>UTF-8</encoding>
</map:serializer>
</map:serializers>
Looks like my encoding is already set to UTF-8, yet I still get the
strange characters (A with an accent mark). Has anyone else had this
problem, or am I missing something in this document that need to be
changed?
Jon
On Jun 18, 2004, at 9:36 AM, Gregor J. Rothfuss wrote:
> Jonathan Linczak wrote:
> > All,
> >
> > Found this in the FAQ docs for Kupu, and understand it fully, just
> don't
> > know where to make the change in Lenya to get this fixed. Can
> someone
> > point me in the right direction? Thanks!
> >
> > * Why do I get all kinds of weird characters?
> >
> > Kupu seems to work correctly when you use UTF-8 as the character
> set for
> > encoding, but gives unpredictable results when you use another
> one such
> > as latin-1 (ISO-8859-1). Make sure to always use UTF-8 as the
> character
> > set for incoming data and set the correct Content-Type header or
> > meta-tag,
> > and Kupu will send back UTF-8 data.
>
> look into usecase.xmap. you'll find kupu pipelines in there, where you
> can set the encoding. at some point, we need to change all of lenya to
> utf-8 anyway.
>
>
>
> --
> Gregor J. Rothfuss
> Wyona Inc. - Open Source Content Management - Apache Lenya
> http://wyona.com http://cocoon.apache.org/lenya
> gregor.rothfuss@wyona.com gregor@apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: Kupu fix for odd characters?
Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Jonathan Linczak wrote:
> All,
>
> Found this in the FAQ docs for Kupu, and understand it fully, just don't
> know where to make the change in Lenya to get this fixed. Can someone
> point me in the right direction? Thanks!
>
> * Why do I get all kinds of weird characters?
>
> Kupu seems to work correctly when you use UTF-8 as the character set for
> encoding, but gives unpredictable results when you use another one such
> as latin-1 (ISO-8859-1). Make sure to always use UTF-8 as the character
> set for incoming data and set the correct Content-Type header or
> meta-tag,
> and Kupu will send back UTF-8 data.
look into usecase.xmap. you'll find kupu pipelines in there, where you
can set the encoding. at some point, we need to change all of lenya to
utf-8 anyway.
--
Gregor J. Rothfuss
Wyona Inc. - Open Source Content Management - Apache Lenya
http://wyona.com http://cocoon.apache.org/lenya
gregor.rothfuss@wyona.com gregor@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: Kupu fix for odd characters?
Posted by Andreas Kuckartz <A....@ping.de>.
Inserting unwanted characters while editing
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=29319
See also:
Switch all encodings to UTF-8
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=28448
Andreas
----- Original Message -----
From: "Jonathan Linczak" <li...@hiram.edu>
To: "Lenya Users List" <le...@cocoon.apache.org>
Sent: Friday, June 18, 2004 3:31 PM
Subject: Kupu fix for odd characters?
> All,
>
> Found this in the FAQ docs for Kupu, and understand it fully, just
> don't know where to make the change in Lenya to get this fixed. Can
> someone point me in the right direction? Thanks!
>
> * Why do I get all kinds of weird characters?
>
> Kupu seems to work correctly when you use UTF-8 as the character set
> for
> encoding, but gives unpredictable results when you use another one
> such
> as latin-1 (ISO-8859-1). Make sure to always use UTF-8 as the
> character
> set for incoming data and set the correct Content-Type header or
> meta-tag,
> and Kupu will send back UTF-8 data.
>
>
> Jon
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: lenya-user-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org