mysql type varchar versus text and blob -


i have form has text area in it. user types comment , gets inserted database. problem arises when comment has apostrophe in it...when go retrieve comment , display on screen apostrophe doesn't show up, , seems transformed weird character. need choose mysql data type (varchar, text, blob) avoid this?

the easiest way fix problem can encode data before store them database, after encoding, there no special character, , when retrieve it, can decode, such urlencode ,urldecode.

hope helps!


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -