Posted 16 years ago
by James Deadman

Hello,
I would like to ask how to set the encoding (e.g. utf-8, shift-jis, etc) of a newly created SyntaxEditor document. How might i do this please?
I can see how its done when opening a file, by passing the encoding to the LoadFile() function.
Initially i thought that perhaps a new SyntaxEditor document will just allow any types of character encoding to be entered, but my Japanese colleagues tell me that this doesnt work. For example they created a new document and tried typing Japanese Shift-JIS (Ansi based) text but the characters do not appear correctly. I think it must default to UTF-8.
Its important for us to allow our Japanese customers to be able to type characters of a particular encoding for newly created files.
Any help would be appreciated. Thanks!
Regards,
James
I would like to ask how to set the encoding (e.g. utf-8, shift-jis, etc) of a newly created SyntaxEditor document. How might i do this please?
I can see how its done when opening a file, by passing the encoding to the LoadFile() function.
Initially i thought that perhaps a new SyntaxEditor document will just allow any types of character encoding to be entered, but my Japanese colleagues tell me that this doesnt work. For example they created a new document and tried typing Japanese Shift-JIS (Ansi based) text but the characters do not appear correctly. I think it must default to UTF-8.
Its important for us to allow our Japanese customers to be able to type characters of a particular encoding for newly created files.
Any help would be appreciated. Thanks!
Regards,
James