grucker Posted December 28, 2011 Report Posted December 28, 2011 If one inserts acute letters, grave letters, ampersands and accented letters in xhtml they show perfectly on the page. However if one uses insert or rss feed they show as � or a square. How does one make them show correctly. Quote
grucker Posted January 2, 2012 Author Report Posted January 2, 2012 If one inserts acute letters, grave letters, ampersands and accented letters in xhtml they show perfectly on the page. However if one uses insert or rss feed they show as � or a square. How does one make them show correctly. Eventually found this was 2 different problems. The inserts issue was solved by using htmlentities(); Like,, htmlentities($french= strftime("%A %d %B %Y - %H:%M",time())); echo htmlentities($french); The Rss feed issue was one of different coding I am using UTF-8 and the feed was using ISO-8859-1 I found that using iconv() did the trick, like, <p style="margin-bottom:0px;">'.iconv ( 'UTF-8', 'ISO-8859-1', $item->description ). '</p> Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.