Printing out Foreign Characters

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Delpheno
Forum Newbie
Posts: 8
Joined: Fri Jul 17, 2009 12:57 pm

Printing out Foreign Characters

Post by Delpheno »

I want to print this word out hæmorrhage, however there's a special character inside.

When it's shown on the webpage, it displays this: �. I'm not sure if you can see it, but it's just a box with four letters inside, I think FFFD. How can I get it to display the character correctly? Is there a function, or is there something else I need to do?

I'm using FireFox 3.0.11 now.

Thank you.
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: Printing out Foreign Characters

Post by Darhazer »

Just make sure that everything is in UTF-8 and you are outputting in UTF-8 as well (setting the Content-type header)
DaiLaughing
Forum Commoner
Posts: 76
Joined: Thu Jul 16, 2009 8:03 am

Re: Printing out Foreign Characters

Post by DaiLaughing »

...including php.ini
Post Reply