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.
Unfortunately, activation email could not send to your email. Please try again.

editcontrol.SaveFile(string)

Thread ID:

Created:

Updated:

Platform:

Replies:

23720 Jan 18,2005 09:48 AM Jan 18,2005 04:06 PM Windows Forms 1
loading
Tags: EditControl
Ryan Mohammed
Asked On January 18, 2005 09:48 AM

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

Administrator [Syncfusion]
Replied On January 18, 2005 04:06 PM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;