Eighteen men appeared in court in the Indian city of Chennai on Tuesday on charges of repeatedly raping a 12-year girl over a seven-month period.