The following can also help you avoid catching typhoid fever:  Avoid raw fruits and vegetables that can't be peeled, such as lettuce or berries. Peel fruits and vegetables yourself after washing your hands. Thoroughly cook foods before you eat them.