timabell / ssrs-powershell-deploy

PowerShell scripts to deploy a SQL Server Reporting Services project (*.rptproj) to a Reporting Server
MIT License
75 stars 40 forks source link

Does not support multilanguage characters #20

Open olesjo opened 7 years ago

olesjo commented 7 years ago

If a report or a dataset has a naming like 'årsak.rsd' or 'ønske.rsl' the deployment fails with a warning like

' the file is referenced in the project-file, but cannot be found in the bin-folder. Try to rebuild.'

When changing the name of the report or dataset to not include national characters, the deployment works. Is this a quick fix?

christophpre commented 5 years ago

I had the same issue. For a quick fix I added UTF8 encoding to a Get-Content, for example in Publish-SSRSProject.ps1:

Before: https://github.com/timabell/ssrs-powershell-deploy/blob/e50fec64951dad7a2c57a32966191754d5c42a56/ssrs-powershell-deploy/SSRS/Publish-SSRSProject.ps1#L56

After:

[xml]$Project = Get-Content -Encoding UTF8 -Path $Path