 Zhang Wenwei had at least two younger brothers, Zhang Jimei (張濟美) and Zhang Yixian (張貽憲), both of whom, like he, would eventually pass the imperial examinations in the "Jinshi" (進士) class.However, only Zhang Yixian would go on to serve as an imperial official; Zhang Jimei would be stricken by mental ailments, and it was said that Zhang Wenwei, while eventually progressing in his career, would care for Zhang Jimei's health for over 30 years, drawing praise from the gentry of the day.Zhang Wenwei himself was said to be good at writing in his youth, and he was both studious and friendly with people, gaining the reputation of being a gentleman.