Andrzej,
The URL
Quote:> > http://something.somewhere/page.aspx?data=11??y
is not a valid URL. That is a fundamental issue which you must solve first.
See the reference on URIs that I previously cited. It doesn't matter what
character encoding you use.
What's more, you've already declared that the output method is HTML
Quote:> > <xsl:output indent="yes" method="html"/>
and an XSLT processor is required to be aware of what constitutes valid
HTML.
Quote:> > ... That's the main problem with aspx - if
> > you specify in web.config <globalization responseEncoding="windows-1250"
> > requestEncoding="windows-1250"/>, you got problem, because URL's are
> encoded
> > in UTF-8, but asp.net framework decodes it with windows-1250 codepage.
I don't think so. Try this at home: create a static HTML page by hand using
the URL above, with any character encoding you might desire. Can you get it
to work? (Hint: it should not.) You could also try creating static HTML
content in an ASPX page with the same URL. I think you will discover this is
not an XSLT problem, it is not an ASP.NET problem, it is not even an HTML
problem. The URL you've written is invalid, and that's a problem.
As Julian pointed out
Quote:> The only portable way to
> transport non-ASCII characters in URLs is to UTF-8-encode and then
> URL-escape them.
Well, we have to refine what Julian meant by non-ASCII, e.g., 0x20 is a
space character in ASCII, but it has to be octet encoded as %20, but he's
close to being correct. Again I will refer you to the specification of what
constitutes a valid URI.
Cheers,
Stuart
--
Stuart Celarier, Fern Creek, www.ferncrk.com
Consultant on .NET, Win32, C#, C++, COM, XML, XSLT and more.