I'm taking foreign (Japanese) characters from a database and using substr() to limit the length of the string.
However when I do this it cuts off a character from the string and that leaves behind one of those question marks in black diamonds as a replacement character (�)
Everything (Documents, Charset, table encoding) are set to UTF-8.
Here is an example of what happens
$string = "日本最大級のポータルサイト。"
echo substr($string, 0,10);
Which outputs 日本最�
How do you reccomend I find/replace this question mark icon?