Sample code for 30+ languages & platforms
Perl

Load utf-8 Text File into a StringBuilder

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

Chilkat Perl Downloads

Chilkat2 Perl
use strict;
use warnings;
use Chilkat2;

my $sb = Chilkat2::StringBuilder->new;

my $success = $sb->LoadFile('someFileContainingUtf8.txt', 'utf-8');
if (!$success) {
    print "Failed.\n";
} else {
    print "Success.\n";
}