i've seen some posts about this topic.
I have a string that contains the letter é. I need to json_encode this string, but the function will return null. In other posts it is said that the reason behind this, is the fact that the string is not a utf-8 encoded string. So, it needs to be a utf-8 encoded string to work.
The problem is, the string comes directly from the database, and the table it originates from is encoded as utf-8. So how is the string i'm trying to parse to a json object not utf-8? Am i missing something?