Skip to content

Commit

Permalink
Add Encoding to httr::content
Browse files Browse the repository at this point in the history
  • Loading branch information
vahid-dan authored Oct 5, 2020
1 parent 1f4d1e0 commit 3827744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/GrapleR.R
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ setMethod(f="GrapleGetExperimentResults",
qurl<-paste(grapleObject@GWSURL, "GrapleRunResults", grapleObject@JobID, sep="/")
grapleObject@StatusCode <- -1
getresp <- GET(qurl, query = list(apikey = grapleObject@APIKey))
status <- fromJSON(content(getresp, "text"))
status <- fromJSON(content(getresp, "text", encoding = "UTF-8"))
if(nchar(status$errors) > 0)
grapleObject@StatusMsg <- status$errors
else if(status$status == "success"){
Expand Down

0 comments on commit 3827744

Please sign in to comment.