Inquiry as to truth of information
49.—(1)  When an order under section 46 has been read or explained under section 47(1) to a person present in court or when a person appears or is brought before the court in compliance with a summons or in execution of a warrant under section 47, the court must then inquire into the truth of the information on which it has acted and will take further evidence as appears necessary.
(2)  The inquiry must follow as closely as practicable the procedure prescribed in this Code for conducting trials, except that no charge need be framed.
(3)  For the purposes of this section, a person’s habitual offending may be proved by evidence of the person’s general reputation or in other ways.