I'm implementing facebook login on my site and the auth process works fine, but there is another problem. When I try to get the name of the user from the auth response, I'm getting this:
Array ( [name] => Ðиколай ДÑнков [image] => ...
This name is supposed to be in Cyrillic characters and I need to:
- Display it to the user in cyrilic
- Store it safely in database and be able to convert it back to cyrillic later
I tried using json_decode() and iconv() but no success. Maybe I can't get the parameters right. Please help!