Config Helper
FileEncoding Property
Example 



KellermanSoftware.ConfigHelper Namespace > IniReaderWriter Class : FileEncoding Property
Override the file encoding. The default is Encoding.Default.
See http://msdn.microsoft.com/en-us/library/system.text.encoding.aspx
Syntax
Public Property FileEncoding As Encoding
Dim instance As IniReaderWriter
Dim value As Encoding
 
instance.FileEncoding = value
 
value = instance.FileEncoding
public Encoding FileEncoding {get; set;}
public:
property Encoding^ FileEncoding {
   Encoding^ get();
   void set (    Encoding^ value);
}
Example
//Trial Mode
IniReaderWriter iniReaderWriter = new IniReaderWriter();
 
//License Mode
//IniReaderWriter iniReaderWriter = new IniReaderWriter("place user name here", "place license key here"); 
 
iniReaderWriter.FileEncoding = Encoding.UTF8;
 
iniReaderWriter.SaveSetting("MySection", "MySettingName", "MySettingValue", "MySettingsFile.ini");
'Trial Mode
Dim iniReaderWriter As New IniReaderWriter()
 
'License Mode
'Dim iniReaderWriter As New IniReaderWriter("place user name here", "place license key here")
 
iniReaderWriter.FileEncoding = Encoding.UTF8
 
iniReaderWriter.SaveSetting("MySection", "MySettingName", "MySettingValue", "MySettingsFile.ini")
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IniReaderWriter Class
IniReaderWriter Members