If your data is loosing its accented characters when you retrieve and store it in your database, try using the following command:

SET NAMES 'utf8'