php - Strange character appearing in text in mysql -


in varchar , text mysql database datatypes, keep seeing  characters appear before every single space after content inserted or updated html textarea fields.

when vardump php data prior insert/update, Â characters aren't there.

i tried converting database , tables default collation of latin1_swedish_ci utf8_general_ci encoding, inserting/updating data again, Â characters still appeared in text before each space.

i don't have grasp on collation , character encoding , thought things fine when left default, encountered issue. how can prevent these characters appearing?

[edit]: if update text database first time, characters not appear. if load text database field , update second time, Â characters appear.

try execute set names 'utf8' on database init. check encoding of php files.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -