anonym

My feedback

  1. 25 votes
    Sign in
    (thinking…)
    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 →
    anonym commented  · 

    Another solution, when you access XML documents:

    # save request as file, xml header has encoding
    Invoke-WebRequest -uri http://www.some-url.com/some-file-or-service.xml -OutFile "response.xml"

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

    # XML-Object load method uses encoding of xml header
    $xmlDoc.Load("response.xml")

Feedback and Knowledge Base