XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 17th, 2004, 09:18 AM
hellsgate hellsgate is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 2 hellsgate User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old March 18th, 2004, 07:23 AM
MattSidesinger's Avatar
MattSidesinger MattSidesinger is offline
Java PHP Oracle Developer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: C-Bus OH-IO
Posts: 204 MattSidesinger User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 26 sec
Reputation Power: 5
Send a message via AIM to MattSidesinger
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

Reply With Quote
  #3  
Old March 22nd, 2004, 04:06 AM
hellsgate hellsgate is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 2 hellsgate User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up

Excellent, it works fine now. Thanks very much Matt!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Changing charset to display '£' properly


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway