making R scripts. Problem with special characters

Solution for making R scripts. Problem with special characters
is Given Below:

I’ve got an R script that makes other R scripts & am having troubles with special characters showing up properly in RStudio.
For example:

cat("Air Temp.Air Temperature (°C) - Hourly", file = "testing.R")

The degrees C symbol appears correctly when I open testing.R in notepad++, and notepad++ shows the endoding to be ANSI.

When I open testing.R in RStudio, the degrees C symbol appears as ‘?’. My RStudio default encoding is set to ‘ask’.

(RStudio v1.4.1103, Windows10)