I don’t know about Schengen but that’s not correct for Japan. You can get a visa to visit Japan from an embassy in a country you’re not a resident or national of, there’s no requirement for the visa to be issued in your country of nationality (although some embassies may choose not to accept applications from non-residents or non-nationals).
Schengen does not work like that. While you are supposed to apply from the country you are a resident in, if you have valid reasons you can apply from any other country. This is also frequently necessary (eg: traveller without fixed residence).
Well, just happening to be in a different country is not a "valid reason". Maybe for someone from the West it would be accepted, but not for the rest of us.
Also, "a traveler without a fixed residence" can get a non-immigrant visa for Schengen? I'm sorry but this just is not true if you're not a Westerner.
> Also, "a traveler without a fixed residence" can get a non-immigrant visa for Schengen? I'm sorry but this just is not true if you're not a Westerner.
If there is no doubt that you will leave and you can sustain yourself: sure.