I used Ultra Dawn (not regular Dawn) with some white vinegar (neutralizes) and liquid fabric softener (fragrance) with hot water. It worked great for me. I was cleaning wallpaper residue from a plasterered wall. If you like, add a little baking soda to work as a scouring agent. Animal skin oil smell from dogs came out of my carpet with a professional cleaning. If it is animal urine, good luck. Shampoo carpets without getting too wet (I use Chem-Dry) or it will help the pad underneath saturate with diluted urine

. Good luck. It should clean up okay.
Also, there was nicotine on my walls. It cleaned up great.
Also, I'd prime to seal it before painting.