Phil and Charlie explain how its done in space. Each Space Shuttle has a toilet that can be used by both men and women. Designed to be as much as possible like those on Earth, the units use flowing air instead of water to move waste through the system.
Solid wastes are compressed and stored on-board, and then removed after landing. Waste water is vented to space, although future systems may recycle it. The air is filtered to remove odor and bacteria and then returned to the cabin.