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!
I can't get Japanese characters to show up in a php document. I'm using unicode encoding, and my computer supports japanese characters. But when I have this:
I'm going to be making an entire website for my school's japanese department with quizzes and cheat-sheets for their students to use as study guides. So while that might work for just that, I can't do that for the whole website.
I got: 
Warning: Cannot modify header information - headers already sent by (output started at /home/users/sjg5005/http/nihongo/directory2.php:1) in /home/users/sjg5005/http/nihongo/directory2.php on line 1
ã
I got: 
Warning: Cannot modify header information - headers already sent by (output started at /home/users/sjg5005/http/nihongo/directory2.php:1) in /home/users/sjg5005/http/nihongo/directory2.php on line 1
ã
mbstring is not needed to output utf-8, it is needed to fix certain things like multi-byte strings counting as longer then they actually are with strlen() for example. As for the header issue that is really a simple problem, you already have output before you made the call to header(). Fix that and let us know what happens
I'm unfortunately using dreamweaver to do this, but I also tried it in notepad and wordpad, and had the same error. So I don't think dreamweaver is putting anything at the top.
I'm unfortunately using dreamweaver to do this, but I also tried it in notepad and wordpad, and had the same error. So I don't think dreamweaver is putting anything at the top.
Is this file being included into another file that's already sent output or has a blank line or a tab at the start?
NOTE: Dreamweaver has a habit of spitting invisiable characters into the start of files which causes such header errors... copying & pasting into wordpad would most likely copy such characters too.... re-typing would not