Constitution of the Republic of China (Taiwan) Article 8

Personal freedom shall be guaranteed to the people. Except in case of flagrante delicto as provided by law, no person shall be arrested or detained otherwise than by a judicial or a police organ in accordance with the procedure prescribed by law. No person shall be tried or punished otherwise than by a law court in accordance with the procedure prescribed by law. Any arrest, detention, trial, or punishment which is not in accordance with the procedure prescribed by law may be resisted.When a person is arrested or detained on suspicion of having committed a crime, the organ making the arrest or detention shall in writing inform the said person, and his designated relative or friend, of the grounds for his arrest or detention, and shall, within 24 hours, turn him over to a competent court for trial. The said person, or any other person, may petition the competent court that a writ be served within 24 hours on the organ making the arrest for the surrender of the said person for trial.The court shall not reject the petition mentioned in the preceding paragraph, nor shall it order the organ concerned to make an investigation and report first. The organ concerned shall not refuse to execute, or delay in executing, the writ of the court for the surrender of the said person for trial.When a person is unlawfully arrested or detained by any organ, he or any other person may petition the court for an investigation. The court shall not reject such a petition, and shall, within 24 hours, investigate the action of the organ concerned and deal with the matter in accordance with law.
中文原文 中華民國憲法第8條
人民身體之自由應予保障。
除現行犯之逮捕由法律另定外,非經司法或警察機關依法定程序,不得逮捕拘禁。
非由法院依法定程序,不得審問處罰。
非依法定程序之逮捕、拘禁、審問、處罰,得拒絕之。
人民因犯罪嫌疑被逮捕拘禁時,其逮捕拘禁機關應將逮捕拘禁原因,以書面告知本人及其本人指定之親友,並至遲於二十四小時內移送該管法院審問。
本人或他人亦得聲請該管法院,於二十四小時內向逮捕之機關提審。
法院對於前項聲請,不得拒絕,並不得先令逮捕拘禁之機關查覆。
逮捕拘禁之機關,對於法院之提審,不得拒絕或遲延。
人民遭受任何機關非法逮捕拘禁時,其本人或他人得向法院聲請追究,法院不得拒絕,並應於二十四小時內向逮捕拘禁之機關追究,依法處理。

English translation for reference only; the Chinese text prevails. Not legal advice.