How can I get the encoding of my Windows XP system. Is there any command for command prompt through which I can know the default encoding of my system.

regards

link|improve this question
I m using Windows XP – Aayushi Feb 26 '10 at 11:48
feedback

migrated from stackoverflow.com Feb 26 '10 at 11:51

This question came from our site for professional and enthusiast programmers.

2 Answers

Just head for the Control Panel | Regional and Language Options | Advanced tab

or

Microsoft MSDN Library has a solution to get the encoding for the operating system's current ANSI code page. You can use the following VB code:

'Usage
 Dim value As Encoding
 value = Encoding.Default

'Declaration
 Public Shared ReadOnly Property Default As Encoding

There are also syntaxes for C#, C++ and JScript. Have a look at MSDN Library for more info.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown