If you take a reasonably long historical perspective, Western cities are a hell of a lot cleaner and safer now than they were in the past. Sewerage goes a long way.
Encampments have an big and long history in Paris even after the 2nd world war... It's not great, just people looking for a better place to live and survive.