in reply to Re: Perl, DOS and encodings
in thread Perl, DOS and encodings
I tested the command from my opening post with different codes pages, setting it to 1251 or 65001 (utf-8). The only correct encoding for Cyrillic text in CLI is 1251. The default encoding in Cygwin is en_US.UTF-8.C:\>chcp Active code page: 866 C:\>powershell -c "[System.Text.Encoding]::Default" IsSingleByte : True BodyName : koi8-r EncodingName : Cyrillic (Windows) HeaderName : windows-1251 WebName : windows-1251 WindowsCodePage : 1251 IsBrowserDisplay : True IsBrowserSave : True IsMailNewsDisplay : True IsMailNewsSave : True EncoderFallback : System.Text.InternalEncoderBestFitFallback DecoderFallback : System.Text.InternalDecoderBestFitFallback IsReadOnly : True CodePage : 1251
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl, DOS and encodings
by haj (Vicar) on Apr 29, 2020 at 22:10 UTC | |
by siberia-man (Friar) on Apr 30, 2020 at 07:24 UTC |