title: Does Perl's Net::Cassandra module support UTF-8?
body: <p>I've run into a really strange UTF-8 problem with <code>Net::Cassandra::Easy</code> (which is built upon <code>Net::Cassandra</code>): UTF-8 strings written to Cassandra are garbled upon retrieval.</p>
  
  <p>The following code shows the problem:</p>
  
  <pre><code>use strict;
  use utf8;
  use warnings;
  use Net::Cassandra::Easy;
  
  binmode(STDOUT, ":utf8");
  
  my $key = "some_key";
  my $column = "some_column";
  my $set_value = "\x{2603}"; # U+2603 is ☃ (SNOWMAN)
  my $cassandra = Net::Cassandra::Easy-&gt;new(keyspace =&gt; "Keyspace1", server =&gt; "localhost");
  $cassandra-&gt;connect();
  $cassandra-&gt;mutate([$key], family =&gt; "Standard1", insertions =&gt; { $column =&gt; $set_value });
  my $result = $cassandra-&gt;get([$key], family =&gt; "Standard1", standard =&gt; 1);
  my $get_value = $result-&gt;{$key}-&gt;{"Standard1"}-&gt;{$column};
  if ($set_value eq $get_value) {
      # this is the path I want.
      print "OK: $set_value == $get_value\n";
  } else {
      # this is the path I get.
      print "ERR: $set_value != $get_value\n";
  }
  </code></pre>
  
  <p>When running the code above <code>$set_value eq $get_value</code> evaluates to <code>false</code>. What am I doing wrong?</p>