I want to insert an m-file into LaTeX, and there are Chinese characters in my m-files, so I need the encoding of m-files to be UTF8.I have searched for some materials on the web, and I found the MATLAB command: slCharacterEncoding. So, I closed all the m-files and input the" slCharacterEncoding('UTF-8') "in the command window. But when I opened the m-file using Notepad++, the encoding with Chinese characters still is GB2312, and the m-files without Chinese characters is normal (UTF8).
how should I do to set the matlab editor to be UTF8 encoding? thanks