Skip to content

Instantly share code, notes, and snippets.

@jhannah
Created January 28, 2011 21:55
Show Gist options
  • Select an option

  • Save jhannah/801070 to your computer and use it in GitHub Desktop.

Select an option

Save jhannah/801070 to your computer and use it in GitHub Desktop.
use utf8;
# use utf8;
# Wow. Simply including the 'use' statement changes this program's behavior
my $str = 'After School - Someone is You / 애프터스쿨 - Someone is You [Audio]';
printf("[%s]\n", substr($str, 0, 40));
printf("[%s]\n", substr($str, 0, 34));
#print utf8::is_utf8($str) ? "yes\n" : "no\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment