It depends what you did. Moodle never deletes the config file. So, if you drop the database and start again it will use any config file it finds. It skips the config file creation step.
This is usually a good thing. Copying config-dist.php and editing config.php myself is my preferred way of doing things.
This is usually a good thing. Copying config-dist.php and editing config.php myself is my preferred way of doing things.
But, yeh, character set and collation problems can be a pain.