Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch    |    Fun with MS-DOS batch files    |    42,547 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 41,490 of 42,547    |
|    sean to sean    |
|    Re: change file encoding in batch file    |
|    15 Oct 16 02:16:51    |
      From: sean@sean.eternal-september.org              On 10/14/2016 11:36 PM, sean wrote:       > iconv looks pretty promising. It somewhat looks like I need to specify       > the existing file type, but in a quick test I did on freebsd, it looks       > like I can fake it.                     This isn't the case in Windows from my testing.              If a file is already utf-16 and I convert it to utf-16, the new file is       blank.              iconv: c:\temp\bin\temp.xml: cannot convert              So knowing this, is there a way to detect the file type so I can skip       files that are already correct?              Thanks,       sean              --- 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