Windows Develop Bookmark and Share   
 index > Windows Forms General > How can I know the encode of a text file?
 

How can I know the encode of a text file?

How can I know the encode of a text file?
such as ASCII, UTF-8 ,UFT-16 ,etc.
CUI WEI  Tuesday, October 25, 2005 9:05 AM

Usually a byte order mark (BOM) is appended before any other text in the file. This BOM is used to tell the encoding of the following text.

XML files have this information in their starting tag.

If either of the above information is not present, then you have to make a guess.

thanks

Seshagiri

VenkatCh  Tuesday, October 25, 2005 12:27 PM
Coudl you write some code to judge the encode of a text file!
you know, when a user upload a text to a server, you should  judge the encode of the text file!
CUI WEI  Tuesday, October 25, 2005 1:20 PM

You can use google to search for other answers

Custom Search

More Threads

• How to refresh a form?
• Child and Parent Form
• Change Font size for MessageBox.Show dialogs?
• general performance problems; building explorer-like file-investigation programs
• Creating a custom class using Form Components
• ListView Help
• Images sometimes displayed for treeview control in release mode
• Painting in a ScrollableControl class
• RichTextBox AppendText from class file
• want 2 share data from 1 from 2 another with MDIFORM