В красной шапке узнаешь дурака в энциклопедиях
Ср. On lui a fait porter le chapeau rouge.
Oudin. Curiosités fr. p. 82.