Foreign investors buy Japanese stocks for 8th straight week amid Middle East tensions