I have an application working fine with special characters, except on firefox and when the app is online.
I'm using AngularJs as front-end and php/mysql to control my dataBase. When I insert new values to data-base, it convert special characters to something like this
São paulo -> São Paulo
The problem is, only in firefox and only when I'm testing it online, the output on the screen is show as São Paulo
instead of São Paulo
. In chrome it works fine.
I already tried a bunch of things to correct this.
- Table in mysql to use
utf-8
instead oflatin1
; - mysql:host=$host;dbname=$db;charset=utf8;
- Convert data when going from AngularJs to php to
utf-8
;
But none of the solutions have worked to fix this problem.
Any ideas?