You're viewing a comment by chovy and its responses.

April 25, 2010, 04:24

perl -ple 's/^\s*|\s*$//g;' #another way to trim

#to encode as hexidecimal entities and utf8 characters (ie: quarter-note)

perl -MHTML::Entities=encode_entities_numeric -Mutf8 -le 'print encode_entities_numeric("♫")'

Great post! Keep it up, I love this stuff.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type first 3 letters of your name: (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.