After posting this topic with a space before the question mark, I noticed that the space was removed from the title. I edited the title, added a space and validated the modification. The space was indeed removed.
In French, we put a space between question and exclamation marks. So in my opinion, Discourse shouldn’t remove this space in this case.