encoding UTF-8 in rshiny

Hello,

When I run my app rshiny I have the error message ERROR: input string 1 is invalid UTF-8.
I really don't understand where the problem comes from because yesterday everything was OK.

In rstudio I reopen with encoding UTF-8 and it doesn't change anything.

Do you have an idea how I can resolve this issue?

Thanks in advance!

I searched in my shiny code and the problem comes from this line of code :

,column(4,selectInput("ecr","ECR :",choices=c("tout", unique(tab.encours$ECR),selectize = TRUE)))

and the code error is : ERROR: input string 1 is invalid

What is the writing problem? :smiling_imp:

Sorry!
I just found, you have to add str()

,column(4,selectInput("ecr","ECR :",choices=c("tout", str(unique(tab.encours$ECR)),selectize = TRUE)))

Great !! :grinning: :grinning: :grinning:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.