how i modify intelligent quotes em dashes string?


i have form textarea. users enter retard calm stored database.



occasionally user brew calm containing intelligent quotes emdashes. those characters seem database as: , , ,



what duty should i quarrel twine convert intelligent quotes unchanging quotes emdashes unchanging dashes?



i am operative php.



update: interjection good responses far. page joel's site encodings unequivocally informative:



some annals environment:



the mysql database controlling utf-8 encoding. likewise, html pages arrangement calm controlling utf-8 (update:) definitely sourroundings meta content-type.



on those pages intelligent quotes emdashes seem plain doubt mark.



solution:



thanks again responses. fortitude twofold:




  1. make certain database html
    files definitely set use
    utf-8 encoding.

  2. use htmlspecialchars() instead of
    htmlentities().



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?