title: Dealing with accents at a .bat script
body: <p>I'm writing a script to automate IP configurations.
  Here is a 2 lines short version of my script.</p>
  <pre><code>set /A octet = %1
  netsh interface ipv4 set address name=&quot;Conexión de área local&quot; static XX.%octet%.XX.XX 255.255.255.0 XX.%octet%.XX.XX
  </code></pre>
  <p>The name parameter is giving me problems, accents aren't represented well and the command fails.</p>
  <p>I've tried saving it using utf-8 and others but nothing is working so far. Any idea?</p>
  <p>EDIT:
  ----WHAT I'VE TRIED SO FAR----</p>
  <ul>
  <li>chpc output: Active code page: 1252</li>
  <li>Saving the .bat with ANSI encoding</li>
  <li>changing netsh for &quot;%<strong>Appdir</strong>%netsh.exe&quot;</li>
  <li>Deleted all extra spaces at the SET commands</li>
  </ul>
  <p>Output so far:
  netsh interface ipv4 set address name&quot;Conex≤n de ßrea local&quot;.... and then the error</p>
  <p>It's windows 7</p>