|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Changing charset to display '£' properly
Hi!
I'm using a PHP page to execute the sablatron to transform an XML feed that I get from a Spanish Web Service. Because of this, the charset that comes back is Spanish (obv.), so when I try to show the pound sterling sign (£) it shows it, but with 'Â' directly in front of it (ie, I'm shown '£'). I've tried putting 'charset="iso-8859-1"', 'charset="UTF-8"', 'charset="iso-646-gb"' and 'charset="BS_4730"' into the link tag in the page header of both the PHP and the XSL transform, but none of these have had any effect. 'BS_4730' and 'iso-646-gb' are both, I believe, character sets for UK english. Thanks in advance. Hellsgate |
|
#2
|
||||
|
||||
|
Add the following to your xsl:
Code:
<xsl:output encoding="ISO-8859-1"/> below the transform or stylesheet element. http://www.w3schools.com/xsl/el_output.asp |
|
#3
|
|||
|
|||
|
Excellent, it works fine now. Thanks very much Matt!
![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Changing charset to display '£' properly |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|