You should use the same encoding for all your work
If using UTF-8( Preferred ) to get data from DB, then you must tell the browser that this data is UTF-8 and so on for any other encoding.
You should add this line of code in head section of HTML page
<META http-equiv="content-type" content="text/html; charset=utf-8">