It is not illegal for students to bring recording pens. It is illegal to record against the will of others, infringe upon the legitimate rights and interests of others, or the purpose of recording is illegal. The actor should bear the corresponding responsibility.
Legal objectivity:
Article 110 of the Civil Law of People's Republic of China (PRC) stipulates that natural persons have the right to life, body, health, name, portrait, reputation, honor, privacy and marital autonomy. Legal persons and unincorporated organizations enjoy the right of name, reputation and honor. Article 990 of the Civil Law of People's Republic of China (PRC) is the right to life, body, health, name, portrait, reputation, honor and privacy enjoyed by civil subjects. In addition to the personality rights stipulated in the preceding paragraph, natural persons enjoy other personality rights based on personal freedom and personal dignity.