Hello @Ian Xue (Shanghai Wicresoft Co., Ltd.) ,
when i'm giving this script that i found in microsoft help page,
[psobject].Assembly.GetTypes() | Where-Object { $.Name -eq 'ClrFacade'} |
ForEach-Object {
$.GetMethod('GetDefaultEncoding', [System.Reflection.BindingFlags]'nonpublic,static').Invoke($null, @())
}
the outcome is,
IsSingleByte : True
BodyName : iso-8859-7
EncodingName : Ελληνικά (Windows)
HeaderName : windows-1253
WebName : windows-1253
WindowsCodePage : 1253
IsBrowserDisplay : True
IsBrowserSave : True
IsMailNewsDisplay : True
IsMailNewsSave : True
EncoderFallback : System.Text.InternalEncoderBestFitFallback
DecoderFallback : System.Text.InternalDecoderBestFitFallback
IsReadOnly : True
CodePage : 1253
When i'm opening the $profile file,
notepad.exe $PROFILE
at the bottom of the notepad shows Windows (CRLF) | UTF-8.
How can i change the encoding of my profile?
Thank you