Home
TeamSite
XSLT UTF-8 Encoding (again)
Millie
I have an encoding problem. I've had a look at the various posts though I can't seem to find an answer to my problem. so here goes:
I have a tpl that performs an XSLT transformation using the iwov_xslt tag.
The top of the tpl looks like:
<?xml version="1.0" encoding="UTF-8"?>
Both the XML and XSL are stored in separate files and have the same lines at the top of the files too. The XML files contain references to entities stored in external files e.g. € ñ
When the final page is generated and viewed (in both Firefox and Internet Explorer) the special characters are not displayed correctly.
IE states that the encoding is "Western European (ISO)" (presumably ISO-8859-1). When I manually force IE's encoding to "UTF-8" the characters are displayed correctly.
does anybody have any idea as to why the UTF-8 encoding is being ignored?
Thanks in advance
Find more posts tagged with
Comments
Millie
Ooops!
I found that despite my inserting
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
into the tpl, unbeknownst to me, someone had countermanded that statement earlier up in the file with a charset of ISO-8859-1.
Apologies for wasting anyone's time.