xsl-list
[Top] [All Lists]

RE: Getting encoding error on svg output

2003-05-13 16:02:47
Hey, I remembered after I wrote that previous reply that I had a similar
problem not long ago and the answer was given to me on this list.
My output format was HTML, and the solution was that I had to specify the
output charset in the <meta> tag:
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

I don't know if svg allows this though.

Anyway, I had this problem because I was trying to use non-ASCII characters,
whereas you're not doing anything funny.
So that's especially puzzling.

Did you try removing all specifications of charset from everywhere?
Did you try putting charset="utf-8" in your <?xml version="1.0"?>
statement?
(I think you tried both, going by your first message.)

Also, I would look in the ASP docs, e.g. check into the transformNode()
function and the Response.Write() function and see if either of them
let you specify the output charset.  Might as well check the load()
function too.  :-)

Again, fumbling in the dark.  Anybody else have ideas?

Lars


-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com]On Behalf Of 
Ragulf
Pickaxe
Sent: Tuesday, May 13, 2003 1:36 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Getting encoding error on svg output


Hi Lars,

(Specifying the
encoding in xsl:output only works in the XSL processor does the
serializing.)
I didn't know that. Thanks.

However, I would be surprised that Microsoft's ASP parts
are by default outputting to an encoding that Microsoft's browser
can't handle.
I have not have problems with anything else. Only when I try 
something like 
what is shown in my previous post do I get this error. 
(Anything else being 
normal static xml to be output in an html page using xslt).


Well, I'm fumbling in the dark here so I hope someone more 
knowledgable
will answer.
I am hoping too :) As well as fumbling in the dark, but I 
always do that.

One way to work toward a solution would be to
use an external XSL processor such as saxon or msxsl.exe, to process
your xml with output to a file
I have to dynamically create the contents of the svg file, 
then show it to 
the user in one pass. Only if there is a way of saving the 
results, then 
loading the result and outputting it to the user, all in one 
pass, can I use 
the above method. If this is possible, I am very interested 
of knowing how, 
since I have no clue (as always, it seems :)).

By the way, I have also tried to save the files as ANSI, as 
well as (but not 
at the same time) writing
<?xml version="1.0" encoding="UTF-16"?> in the top of the xml and xsl 
documents. Nothing gives other than the afforementioned error.

Regards,
Ragulf Pickaxe


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>