'Calling a Java program from a batch file with parameters containing Danish characters
I'm calling a java program from a batch file with parameters to send an email, works fine except that the program won't accept Danish charters like Æ
, Ø
, Å
, (see fromCompanyName).
Batch file:
set host="smtp.xyz.com"
set username="[email protected]"
set password="Password42"
set FromCompanyName="Testing æøå"
set from="[email protected]"
So right now the 'From' in the email looks like this: Testing +å+ÿ+à
If I use echo æøå
in batch file output: ├ª├©├Ñ
If I use echo æøå
in a command prompt output: æøå
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|