Unicode and PHP - am I doing something wrong?

Posted by alex on Stack Overflow See other posts from Stack Overflow or by alex
Published on 2010-04-07T02:41:28Z Indexed on 2010/04/07 2:43 UTC
Read the original article Hit count: 279

Filed under:
|

I'm using Kohana 3, which has full support for Unicode.

I have this as the first child of my <head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

The Unicode character I am inserting into is é as in Café.

However, I am getting the triangle with a ? (as in could not decode character).

As far as I can tell in my own code, I am not doing any string manipulation on the text.

In fact, I have placed the accent straight into a view's PHP file and it is still not working.

I copied the character from this page: http://www.fileformat.info/info/unicode/char/00e9/index.htm

I've only just started examining PHP's Unicode limitations, so I could be doing something horribly wrong.

So, how do I display this character? Do I need to resort to the HTML entity?

© Stack Overflow or respective owner

Related posts about php

Related posts about unicode