Writing UTF-8 Japanese characters on a file with php
<p>I've made a japanese e-learning site and i just implemented a chatroom.
The data is stored in txt files, but when i submit data from the chat written in japanese, it outputs strange characters in the file because probably it doesn't read utf-8.
The strange fact is that when i manually write in japanese inside the txt file, the output in the chatroom is correct.
So the problem is that php fwrite doesn't write japanese.
What do i have to do?</p>
