u/sunagainstgold touched on this in their excellent answer on sexual violence in the Middle Ages. I thought that this was distinct enough to merit its own question.
My question is, broadly, what were the consequences for soldiers who raped and / or sexually assaulted people (civilians, prisoners, or other members of their own military) during the two World Wars. I'm aware this is a very broad question, so here are some more specific ones I'm particularly curious about:
This older answer addresses only part of your question, but does look at how the US Army during the conflict prosecuted and punished the crime, as well as the racial bias in how those policies were carried out.