Straight white vinegar is effective on pet urine as a cleanser and a deodorizer. Test it in a small and inconspicuous place first. Apply generously but not so much as to soak the carpet. Let it sit a few minutes to dissolve the crystals. Blot with either cloth or paper towels (white ones to avoid any color transfer if the carpet is a light color).