SECTION 27. DUTY OF JAILER; JAIL EXPENSES.
   The Jailer of Mason County shall take and receive into his custody any person sentenced to imprisonment in the Jail of said County, or committed thereto for the nonpayment of a fine and costs, or for the failure to enter into a recognizance, by the judgment or order of the Mayor, in proceedings for the violation of an ordinance; and the expenses of maintaining such person while so in confinement, shall be paid by the City.