| 123456789101112131415161718192021222324252627 |
- $f = "e:\workspace\openclaw-voc-skill\voc\asin-sales-volume\api-config.json"
- $c1 = Get-Content $f -Raw -Encoding UTF8
- $c2 = [System.IO.File]::ReadAllText($f, [System.Text.Encoding]::UTF8)
- Write-Host "GC null: $($null -eq $c1)"
- Write-Host "RT null: $($null -eq $c2)"
- Write-Host "GC len: $($c1.Length)"
- Write-Host "RT len: $($c2.Length)"
- $token = "tokenConfig"
- Write-Host "GC IndexOf: $($c1.IndexOf($token))"
- Write-Host "RT IndexOf: $($c2.IndexOf($token))"
- # Show first 200 chars raw bytes around the expected position
- $bytes = [System.IO.File]::ReadAllBytes($f)
- Write-Host "File byte count: $($bytes.Length)"
- # Show bytes 2000-2010 (rough position of "tokenConfig" based on line ~99)
- $near = $bytes[2900..2950]
- Write-Host "Bytes near pos 2900: $($near -join ' ')"
- # Check with quotes
- $token2 = '"tokenConfig"'
- Write-Host "IndexOf with quotes: $($c1.IndexOf($token2))"
- # Show 10 chars around position 1972
- Write-Host "Chars 1965-1995: $(($c1[1965..1995] | ForEach-Object { [int]$_ }) -join ' ')"
- Write-Host "String around: $($c1.Substring(1965, 30))"
|