you are coding XML and not HTML. The German umlauts are only declared in HTML as entities. In XML only <, >, ', " and &..; (which one was the 5th) are known?
Why do you have Ö in your database? This would be really bad: a database should store a character in it, not an "entity, which will be later interpreted as a character".
Joerg
Robert Sösemann wrote:
Hello, who can help,I have the following code fragment in my xsp page, but I always get an error because of the use of german umlaut entities like Ö. <xsp:logic> String keyword = <esql:get-string column="k.word"/>; String firstletter = keyword.substring(0,6); String sortable = keyword; if( firstletter == "Ö" || firstletter == "ö" || firstletter == "Ä" || firstletter == "ä" || firstletter == "Ü" || firstletter == "ü") { firstletter = firstletter.substring(1,1).toUpperCase(); sortable = firstletter + "e" + keyword.substring(1); } </xsp:logic> That's how I get it from my database. How can I escape this? I also experience that cocoon has a problem to resolve &... entites in general. I allways get the error "The entity * was referenced, but not declared. What is wrong? Robert
--------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>