Jump to content
Killersites Forums

acute grave and accented letters


Recommended Posts

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>

Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...