Drink only boiled or bottled water. Tap water is OK for washing, though. Just don't drink it without boiling it first. Wash or peel all fruit and vegetables. Be wary of salads; cooked food is preferable. Be wary of street stalls. Hygiene is an unknown concept for many locals. You may eat at one friendly stall often without incident then one day find yourself lying on the floor vomiting from all ports.
Larger restaurants are safe.