home bbs files messages ]

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,483 of 42,547   
   sean to All   
   change file encoding in batch file   
   11 Oct 16 15:40:34   
   
   From: sean@sean.eternal-september.org   
      
   Hi All,   
      
   I have a need to change file encoding from whatever it is now to utf-16   
   and I'd like to do this programmatically without much hassle. Doing a   
   few searches, I came across chcp and various non-bundled windows tools.   
   I'd prefer if there were no external dependencies, but if that's not   
   easily doable, bundle as few dependencies as necessary in my batch file.   
      
   The searches I performed reference chcp 1201 and chcp 65001 but doing   
   the former in the command prompt, I get invalid code page error.   
      
   Any pointers on changing the file type will be greatly appreciated!   
      
   Best,   
   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