Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Old Chestnut: Java, xslt and the £ sign

13 views
Skip to first unread message

lipska the kat

unread,
Oct 30, 2012, 11:43:38 AM10/30/12
to
Hi

Java 1.6.0_35 default transformer factory etc

In the web page in which the transformation is displayed

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

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
----------------------------------------------------------------------

The xml file being transformed

-------------------------------------------------------
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
------------------------------------------------------

the xsl file

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

I've tried all the solutions Google supplies but I just cannot get the
transformed html to display the £ (GBP) sign at all.

I'm sure it's something that has been asked many times but I'm at a loss
to know what to do next.

Any ideas much appreciated.

thanks

lipska

--
Lipska the Kat©: Troll hunter, sandbox destroyer
and farscape dreamer of Aeryn Sun

lipska the kat

unread,
Oct 30, 2012, 11:50:31 AM10/30/12
to
On 30/10/12 15:43, lipska the kat wrote:
> Hi
>
> Java 1.6.0_35 default transformer factory etc
>
[snip]

jeez

in my custom tag

pageContext.getResponse().setCharacterEncoding("UTF-8");
pageContext.getResponse().setContentType("text/html;charset=UTF-8");

fixes it.
0 new messages