In 1998, China joined the UN International Covenant on Civil and Political Rights, and also the UN International Covenant on Economic, Social and Cultural Rights.
In China there are lots of laws and regulations. For example, at the very beginning of the constitution, it says that this law is for the people of China. In chapter 1, it also says that every citizen in the country has freedom of speech, publication, conventions, societies, and demonstrations—all these freedoms—but they're not implemented.