Sample code for 30+ languages & platforms
PowerShell

Load utf-8 Text File into a StringBuilder

Demonstrates how to load a utf-8 text file into a StringBuilder object instance.

Chilkat PowerShell Downloads

PowerShell
Add-Type -Path "C:\chilkat\ChilkatDotNet47-x64\ChilkatDotNet47.dll"

$success = $false

$sb = New-Object Chilkat.StringBuilder

$success = $sb.LoadFile("someFileContainingUtf8.txt","utf-8")
if ($success -ne $true) {
    $("Failed.")
}
else {
    $("Success.")
}