In all cases where a person is committed from another county for a criminal offense under this chapter, such county, or the prisoner, or the state, shall pay the expenses, in the same manner as if the commitment had been in the county where the offense was committed; and in civil suits, the plaintiff or defendant, or the prisoner, shall pay the expenses, in the same manner as if the imprisonment had taken place in the county where the suit commenced.
§ 221.260, RSMo