If your pet has an accident on the carpet, act fast. Urine can damage fibers and even change the color of carpet.
First, soak up the urine with white paper towels. Printed patterns can bleed color into the carpet. Press hard to soak up as much as possible. Then add about a quarter-teaspoon of dishwashing liquid to a cup of lukewarm water. (Don't use the detergent you use with your dishwasher.)
Next, apply the soapy water. Soak the area thoroughly with paper towels. Then blot the area with dry paper towels and repeat this wet-and- dry process at least once. Follow up with clear water to rinse out the detergent and blot the carpet dry again.
Finally, apply one part white vinegar mixed with two parts water and blot the carpet one last time. Cover the damp area with about 20 layers of paper towels and a heavy stack of books. Change the towels again and again until they no longer absorb moisture.