Skip to content

Instantly share code, notes, and snippets.

@hadley
Created February 21, 2011 17:50
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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