Hello,
If I have a script with æåø characters (danish) and then create a project they get replaced with ? etc. Then I have to go over the file and correct everything and it is then fine. If Ithen open the script without the project the characters get messed op again.. Is there a solution to this problem?
Character encoding sits somehow in between R and your OS; it can be difficult to troubleshoot. (i.e. welcome to encoding hell! )
What platform are you using? And what locale you have set up (= what do you get when running Sys.getlocale() ?)
When I had a similar issue – I had trouble displaying Czech, not Danish characters, so not exactly the same but very similar – I solved it by including this code in my .Rprofile
You may want to edit the script to suit your language - code page 1250 is relevant for Central European languages, I believe that Danish script uses 865 but I may be wrong here...