DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9025>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9025

xsp is not able to handle all UTF-8 characters

           Summary: xsp is not able to handle all UTF-8 characters
           Product: Cocoon 2
           Version: 2.0.2
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Other
         Component: core
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Consider this small xsp example:
In the first step I put in a german umlaut A (UTF-8)
- in a byte array and this inside <xsp:expr>
- direct between the tags
This is working well.

In a second step I put in a russian umlaut E (UTF-8)
- in a byte array and this inside <xsp:expr> -> working well
- direct between tags -> the result is the question mark
Also in the generated java I see the question mark, it looks like:
this.characters("?");

I have no idea how to solve. Maybe this is a xalan problem?

<?xml version="1.0" encoding="UTF-8"?>
<xsp:page language="java" xmlns:xsp="http://apache.org/xsp"; encoding="UTF-8">
 <page>
  <!-- german A umlaut -->
  <xsp:logic>
   byte b[] = new byte[2];
   b[0] = (byte)0xc3;
   b[1] = (byte)0x84;
   String a = new String(b, "UTF-8");
  </xsp:logic>
  <value><xsp:expr>a</xsp:expr></value>
  <value>Ã~D</value>
 
  <!-- russian E with 2 dots above like german umlaut -->
  <xsp:logic>
   b[0] = (byte)0xd0;
   b[1] = (byte)0x81;
   a = new String(b, "UTF-8");
  </xsp:logic>
  <value><xsp:expr>a</xsp:expr></value>
  <value>Ð~A</value>
 </page>
</xsp:page>

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

Reply via email to