It would probably depend which web browser you're using and the encoding settings in the browser. Garbage in, garbage out.
I would also wager that the correct Japanese font is not installed on the system, or at least active. Plus the keyboard settings would have to be correct for the languages. That's all I can think of, to add to the Steve's answer, which is also very relevant.