The N-permethylation of chitosan and the preparation of N-trimethyl chitosan iodide.