PHP
Chilkat2 PHP
Load utf-8 Text File into a StringBuilder
Demonstrates how to load a utf-8 text file into a StringBuilder object instance.Chilkat PHP Downloads
<?php
use Chilkat2\StringBuilder;
$sb = new StringBuilder();
try {
$sb->LoadFile('someFileContainingUtf8.txt', 'utf-8');
echo "Success.\n";
} catch (\Chilkat2\Exception $e) {
echo "Failed.\n";
}