xyc
2026-08-14 1f4a6cc6045f47861c3e8d49a782afc3e11e3843
1
2
3
4
5
6
7
8
9
10
Get-ChildItem -Path "$PSScriptRoot\traffic-audit-server\src" -Recurse -Filter "*.java" | ForEach-Object {
    $content = Get-Content $_.FullName -Raw
    if ($content.StartsWith("`uFEFF")) {
        $content = $content.Substring(1)
        $utf8 = New-Object System.Text.UTF8Encoding $false
        [System.IO.File]::WriteAllText($_.FullName, $content, $utf8)
        Write-Host "Fixed: $($_.Name)"
    }
}
Write-Host "BOM cleared. Ready to compile." -ForegroundColor Green