Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Utf 8 Decoding Database Data

$
0
0
Hello everybody

I am currently trying to get some utf 8 encoded data from the data base:
For example the String "Message's" is saved as "Message’s"
Without yii when echoing it out it was enough to have the charset set on utf-8.

Yii however echos out "Message’s" although its charset is utf-8 too.
I have already tried php's utf8_decode() function but it just returns some gibberish:
Message�??s


So my Question is: How am i able to echo out the decoded String?

Viewing all articles
Browse latest Browse all 18717

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>