Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch.nt    |    Fun with Windows NT batch files    |    68,980 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 67,931 of 68,980    |
|    JJ to Anton Shepelev    |
|    Re: Character encoding of redirected out    |
|    27 Aug 22 23:56:33    |
      From: jj4public@outlook.com              On Sat, 27 Aug 2022 17:26:05 +0300, Anton Shepelev wrote:       > JJ to Anton Shepelev:       >       >>> Invoking `chcp' has no effect, so that       >>>       >>> chcp 1251       >>> net start d >> log.txt 2>&1       >>>       >>> still produces `log.txt' with the default Cyrillic       >>> encoding, 866.       >>       >> Not possible using batch file alone.       >       > Do you mean that codepage 866 is built into the pro-       > gram, and the terminal emulator does not apply any       > convesion?              Oh, wait. That code _should_ work. Even if NET's output contains a character       which is not within code page 1251's character set, the character will be       converted to `?`. Everything else should be converted properly.              Can you post the actual text output (not screenshot) of that NET command?              > I have never heard of `recode' but am familliar with       > `iconv' and can use it. Thank you.              Anything which can convert between character sets, can be used. It'll be       required for manual conversion or as a fallback when something doesn't work.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca