charset in jquery ui

charset in jquery ui

hi, I'm get data from a form in jquery ui dialog. A string can contains chars like 'à' 'è'.
I've a problem when saving on db, because charset in the page is ISO-8859-1 but characters are not saved in the db as ISO characters, but in other charset. Why does it happen??