rmbolger / Posh-IBWAPI

PowerShell module for interacting with the Infoblox WAPI (REST API).
MIT License
54 stars 8 forks source link

ConvertTo-JSON cmdlet is not working with other language characters like ü ö ä ç á etc. #17

Closed friedlgrz closed 7 years ago

friedlgrz commented 7 years ago

ConvertTo-JSON cmdlet is not working with other language characters like ü ö ä ç á etc. see: see

Example:

// logon Set-IBWAPIConfig -WAPIhost ipam.xxx .at -WAPIVersion latest -credential (get-credential)

//read out with Special Characters -> works correctly Get-IBObject -type network -filters "comment=Schönwies"

//write comment--> not work with Special Characters Get-IBObject -type network -filters "network=x.x.x.x/24" | Set-IBObject -Template @{comment = "Schönwies"}

ConvertTo-JSON are used in Invoke-IBFunction.ps1, New-IBObject.ps1, Set-IBObject.ps1. I used the workarround from link at all "ConvertTo-JSON"-Calls in the three Files and it works perfect. Please use the workaround also in your project.

rmbolger commented 7 years ago

Thank you for the bug report. It seems like the workaround should be pretty straightforward. I'll see what I can do.

rmbolger commented 7 years ago

This is now fixed in version 1.1.2.