Gary Woods
Gary Woods

Reputation: 1011

Encode string into unicode using PHP

I'm trying to encode a string into unicode with:

$text = 'Hello  World';
echo mb_convert_encoding($text, "UTF-8");

Running that should convert the  character, but it is still displayed when I echo it. Why?

Upvotes: 0

Views: 175

Answers (0)

Related Questions