Skip to content

Instantly share code, notes, and snippets.

@hadley
Created February 21, 2011 17:50
Show Gist options
  • Save hadley/837414 to your computer and use it in GitHub Desktop.
Save hadley/837414 to your computer and use it in GitHub Desktop.
which-encoding.r
all <- iconvlist()
names(all) <- all
tries <- llply(all[330:350], function(cur) iconv(song$artist, cur, "UTF-8"))
vapply(tries, function(x) sum(is.na(x)), integer(1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment