Jump to content
  • 0

Accenten op je webpagina


TheMisfit

Question

5 answers to this question

Recommended Posts

  • 0
Ik denk dat je dit het beste binnen PHP kunt oplossen. Feitelijk moet je de speciale tekens vertalen naar hun html equivalenten.

 

Ik dacht dat dat gebeurde met

 

htmlspecialchars($fieldValue, ENT_QUOTES)

 

en die gebruik ik reeds, of heb ik het mis?

 

De encoding voor de webpage moet blijkbaar op 'UTF-8' staan.

Link to comment
  • 0

gebruik de php get_html_translation_table(HTML_ENTITIES) en /of get_html_translation_table(HTML_SPECIALCHARS) functie om de vertaaltabel terug te krijgen die PHP gebruikt voor de htmlspecialchars() en htmlentities() functies.

 

Niets belet je overigens om zelf html entities à la "&eagrave;" of "& # 249 ;" (zonder spatief wel, kan het niet anders tonen op de html pagina's van het forum :wink: ) te genereren.

 

- Jeroen

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   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.

×
×
  • Create New...