----- Original Message -----
From: "Joerg Heinicke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 12, 2002 5:23 PM
Subject: Re: encoding problem with xslt


> Hmm, I didn't test it a long time and didn't find a correlating bug by a
> short view on Xalan bug list. It was a bug in our application that "mü"
was
> "transformed" to "mü".
> (For people with different encoding: u umlaut ==> A+~ and 1/4.)
> I had in mind (and written in our bugzilla) that it was a Xalan bug,
maybe
> that's wrong. It sounds a bit like the description of the original post
on
> this thread. At least we solved it with POST form.
>
> Joerg
>


Thank you very much Joerg. This smells a lot like UTF-8 encoding.


<java>

  String s = new String("mü");
  byte[] data = s.getBytes("ISO-8859-1");
  String decoded = new String(data,"UTF-8");

  System.out.println(decoded);

</java>

gives mü. So Xalan encoded your string UTF-8. This is the
recommend encoding for URIs (see RFC 2718). So this is no
bug of Xalan.
And this leads to the real problem. URL being encoding
UTF-8 and servlet container encoding being ISO-8859-1.

Solution: ?



Jens

--

jens.lorenz at interface-projects dot de

interface:projects GmbH                             \\|//
Tolkewitzer Strasse 49                              (o o)
01277 Dresden                               ~~~~oOOo~(_)~oOOo~~~~
Germany


---------------------------------------------------------------------
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]>

Reply via email to