in construction of a peripheral - magnetization type magnetic encoder having a rotary spindle and a magnetic head , a resin housing is formed by insert moulding so as to embrace the spindle leaving a slight tubular clearance to allow free axial rotation of the spindle , thereby providing direct , simple and stable support to the rotary spindle for enhanced precision in direction .