Skip to content

Commit

Permalink
utf8 encoding /Tomas Fulajtar
Browse files Browse the repository at this point in the history
  • Loading branch information
hieuhoang committed Oct 24, 2014
1 parent 3d8526d commit 834a89d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ sub read_cluster_from_mkcls {
my ($file) = @_;
my %CLUSTER;
open(CLUSTER_FILE,$file) || die("ERROR: could not open cluster file '$file'");
binmode(CLUSTER_FILE, ":utf8");
while(<CLUSTER_FILE>) {
chop;
my ($word,$cluster) = split;
Expand All @@ -45,3 +46,5 @@ sub read_cluster_from_mkcls {

sub add_cluster_to_string {
}


0 comments on commit 834a89d

Please sign in to comment.