We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

editcontrol.SaveFile(string)

I have an issue where, whenever I execute a savefile command on a code editor window, the first few characters are FF FE FF FE (in HEX) it looks like a dot if the saved file is opened in an external text editor. Has someone else ever seen this? If so, is it fixed in a later version? Ryan

1 Reply

AD Administrator Syncfusion Team January 18, 2005 09:06 PM UTC

Hi Ryan, The reason is that by default, the text encoding is set to UTF8. These initial characters are marking the file as unicode file with UTF8 encoding. Editors such as notepad ignore these initial characters when displaying. If you are wanting to remove this, you need to set the TextEncoding of the Editcontrol to be ASCII. Calling: this.editor.TextEncoding = System.Text.Encoding.ASCII; should take care of this issue. Regards Arun

Loader.
Live Chat Icon For mobile
Up arrow icon