Created
January 28, 2011 21:55
-
-
Save jhannah/801070 to your computer and use it in GitHub Desktop.
use utf8;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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