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


Thread ID:





23720 Jan 18,2005 02:48 PM UTC Jan 18,2005 09:06 PM UTC WinForms 1
Tags: EditControl
Ryan Mohammed
Asked On January 18, 2005 02:48 PM UTC

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 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


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon