I am trying to create a properties file using PowerShell 2.0.
I am using following operations:
echo SLAVE1=$MAIN_DB >result.properties
echo SLAVE2=$WB_DB >>result.properties
But the file is getting created in wrong encoding (I believe "With BOM"). Is there any way I can do my above operation and created file is in UTF-8 encoding without BOM?