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:
- make certain database html
files definitely set use
utf-8 encoding. - use
htmlspecialchars()instead ofhtmlentities().
Comments
Post a Comment