How to change encoding in comments?

Hi @tygrysuav,
Welcome to the RStudio Community Forum!

Yes, there is a reported bug when using a Polish keyboard in RStudio. Not sure if its fixed yet.
https://forum.posit.co/t/polish-characters-dont-work-in-rstudio-ide/67711
HTH