Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Global parameters with UTF-8 characters and ???s

From: "Mukul Gandhi" <gandhi.mukul@--------->
To:
Date: 8/2/2006 6:41:00 PM
Just guessing, it could be the font problem, and possibly encoding
setting in the browser. Are the correct font installed on your OS? You
may need to use correct font name in HTML <font> tag. You might need
to wrap the text you want to see in the browser in <font> tag.

You could also tweak the browser's encoding option (in IE its in View
-> Encoding).

I am able to suggest something, because sometime back I faced this
similar problem, and the symptoms you have mentioned are identical to
mine.

--
Regards,
Mukul Gandhi

http://gandhimukul.tripod.com



On 8/2/06, David Nesbitt <dnesbitt@xxxxxxxxxxxxxxxxx> wrote:
I am having problems with global parameters which have UTF-8 characters
in them.  They show up as question marks when I use their values in the
output (e.g. <xsl:value-of select="$global-parameter"/>).

I am using JAXP (with Xalan 2.6 as the underlying XSLT engine) from a
JSP page to generate HTML.

My JSP page has the following setting for UTF-8:



<%@ page contentType="text/html;charset=UTF-8" language="java" %>



My XSLT stylesheet has the following XML declaration:



<?xml version="1.0" encoding="UTF-8"?>



And the stylesheet also has the following output element:



<xsl:output method="html" indent="yes" encoding="UTF-8"/>



I am using the following Java code to set the global parameters:



transformer.setParameter(key, resourceBundle.getString(key));



So I think I am setting everything up properly for UTF-8.  Is there
anything I am doing wrong that is causing these characters to be shown
as question marks?

Thanks in advance for any help.



Regards,
Dave


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent