The Free Dictionary  
mailing list For webmasters
Welcome Guest Forum Search | Active Topics | Members

Help with encoding on my site Options
HiTowerUK
Posted: Thursday, April 21, 2011 7:46:10 AM
Rank: Newbie

Joined: 4/21/2011
Posts: 3
Neurons: 9
Location: United Kingdom
I have "This Day in History" embedded on the home page of my website. The problem is that certain characters are not displaying correctly and I am told that this is due to the encoding of the downloaded feed. On today's feed for example, the first line of text reads: "Born José Joaquim da Solva Xavier....." On my site however, the acuted 'e' of José does not display correctly (Born José Joaquim da Silva Xavier).

Is there anyway that I can specifiy the encoding of the feed so that it displays correctly (ISO-8859-1)?

Thanks for any help,
Roger
NickS
Posted: Thursday, April 21, 2011 10:46:35 AM

Rank: Administration

Joined: 3/6/2009
Posts: 22
Hello,

The feed is sent in UTF-8 format. You have several options:

1. Change your site encoding to UTF-8, this is probably the easiest solution.
2. Use the picture format available at http://www.thefreedictionary.com/lookup.htm#22
3. Use server-side code using our RSS feed http://www.thefreedictionary.com/lookup.htm#rss

Good luck!
HiTowerUK
Posted: Thursday, April 21, 2011 12:48:07 PM
Rank: Newbie

Joined: 4/21/2011
Posts: 3
Neurons: 9
Location: United Kingdom
Thanks for your help. Changing my site to UTF-8 is certainly not an easy solution. I connect to a database that is encoded to ISO-8859-1 as are data updates provided by a worldwide membership. I'll leave that nightmare for another day! (Pray)

I managed to solve the problem completely, by accident! Here is my solution which works and validates fine if anyone else has a similar problem:

<script language="javascript" src="http://img.tfd.com/daily/history-top.js?0" type="text/javascript" charset="UTF-8"></script>

(Just added the "charset" attribute)

Thanks for your very fast response and also for such excellent feeds!

Cheers
Roger Dancing
excaelis
Posted: Thursday, April 21, 2011 10:17:25 PM

Rank: Advanced Member

Joined: 6/30/2010
Posts: 10,965
Neurons: 32,652
Location: Toronto, Ontario, Canada
Aha ! A new language ! Eh?
HiTowerUK
Posted: Friday, April 22, 2011 2:27:35 AM
Rank: Newbie

Joined: 4/21/2011
Posts: 3
Neurons: 9
Location: United Kingdom
Another pointless comment from across the ocean!! You know exactly what I mean and if you dont then why make such a comment? (so, I got collation and encoding mixed up - so what!). My problem is fixed and I was just trying to help others who may have the same. Brick wall
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.