Yes, I think it has to do with the encoding of the Japanese. The examples are pulled from a stand alone table when it finds a 'hit' for that kanji. Since the encoding (Shift-JIS) is a bit off at times, it may think it found a hit when it really doesn't.
I am afraid it is beyond my abilities to figure this one out. I need to stop playing with PHP 'cause every time I make something poor Zengargoyle has to come and fix it! He has talked to me about eventually (keyword: eventually) converting the site's encoding over to a more universal standard, but that may be a good ways off.
not this time... the kanji page searches for examples that way, and works.
http://www.thejapanesepage.com/php-file ... nji_id=204
however, the kanji benkyou box doesn't search example text for kanji. instead, each example has a field for the kanji_id that it is an example of and the benkyou box looks for examples with the right kanji_id. and the entry for kanji_id 240 is erroneous.
exampler: sono biru wa mada kensetsu chuu desu.
notes: The building is still under construction. <snip url junk>
fix that entry and you're good to go. i'm guessing it was done this way to keep from accidentally having dozens or more of examples show up in the benkyou box. like 日 is probably in many examples in the database and all of those don't need to be shown in the benkyou box.
ALSO WORTHY OF NOTE
since we increased the range of the benkyou box (it now shows from the first 300 kanji instead of from the first 100), some of the kanji don't have any
examples, or may be missing pronounciation.