Sample code for 30+ languages & platforms
Chilkat2-Python

Load utf-8 Text File into a StringBuilder

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

Chilkat Chilkat2-Python Downloads

Chilkat2-Python
import chilkat2

success = False

sb = chilkat2.StringBuilder()

success = sb.LoadFile("someFileContainingUtf8.txt","utf-8")
if (success != True):
    print("Failed.")
else:
    print("Success.")