My feedback

  1. 28 votes
    Sign in
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    4 comments  ·  PowerShell » Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
    An error occurred while saving the comment
    anonym commented  · 

    Another solution, when you access XML documents:

    # save request as file, xml header has encoding
    Invoke-WebRequest -uri -OutFile "response.xml"

    # new XML-Object
    [xml]$xmlDoc = New-Object -TypeName XML

    # XML-Object load method uses encoding of xml header

Feedback and Knowledge Base