I was using a Powershell script I found to help me rename a BizTalk application. The maps are stored in .btm files, and must have an XML byte order mark.
After running this script:
$configFiles = Get-ChildItem -Path "C:\MyCodePath" *.btm* -rec
foreach ($file in $configFiles)
{
(Get-Content $file.PSPath) |
Foreach-Object { $_ -replace "oldstring", "newstring" } |
Set-Content $file.PSPath
}
then I got build error: error btm1023: Exception Caught: There is no Unicode byte order mark. Cannot switch to Unicode.