I disagree.

UTF-8 is far from new. The IDE cannot fail at the point of not handling a known technology without advancing the argument with further messaging.

What happens when you run the same code within R apart from the IDE?

What trace work have you accomplished with this special character in a separate test script?

It may be how Windows 10 is handling UTF-8 after the latest update of optional packages that Microsoft released last week. Run a test in CMD on UTF-8 and see what you discover.


*Stephen Dawson, DSL*
/Executive Strategy Consultant/
Business & Technology
+1 (865) 804-3454
http://www.shdawson.com


On 7/9/24 11:24, Bert Gunter wrote:
I think you should also update R to the latest version, as that *might* be
the source of the problem.

Other may be able to give you a specific diagnosis, but updating R is to a
(reasonably, at least) current version is good practice anyway.

Cheers,
Bert

On Tue, Jul 9, 2024 at 8:11 AM Levent TERLEMEZ via R-help <
r-help@r-project.org> wrote:

Hi,

Have a nice week. First of all, I know this is not R Studio forum but I
want to ask here first, if you all do not mind. Well, I am away from my
computer right now but, I have a strange problem (at least to me). My
script worked perfectly for a year, and today, suddenly stop working
because R Studio begins to warn me about illegal characters in the script.

System is on W 10, and R 3.4.1 is working with R Studio. R Studio is
updated today to the latest one because of this problem with the hope of
resolving the problem (but no luck) and they are used as their default
installation settings. Anyway, the problem example may not be repoducable
right now but if it is, I can give detailed one later.

While the original working code is this (there is no synax error, too in
the code because it was working perfectly until today before updating R
Studio, error also came out before this update as I mensioned before);

legend(c("Kapanış",""20 Günlük,"50 Günlük"),col=c("black"...

The warning is this;

Error: unexpected symbol inside:
" Encoding(kill3) <- "latin1" legend(c(kill1,kill2,"50
G�nl�k"),col=c("black"… and can be solved when converted “ü” to “u”.
Addition to this another solution (at least for me) is this;

kill1<-"Kapanış"
Encoding(kill1) <- "UTF-8" (these two statements are not needed but fort
he sake of code integrity, is applied to it, too. If kill1 is converted to
latin1, this time it is broken)
kill2<-"22 Günlük MA"
Encoding(kill2) <- "latin1"
kill3<-"50 Günlük MA"
Encoding(kill3) <- "latin1"

And also it is set to “ASK” and always “UTF-8” is selected.

But, I also wonder why today and what changed so R Studio stops suddenly
running the script? I can not following up the changes anymore as used to
be and if this is a character set problem, it is coming back again and
again. What is the permenant solution of this? This is like an endless
problem…

With my best regards and thanks for your patience….

Levent Terlemez.



________________________________
YASAL UYARI: Bu e-postanın içerdiği bilgiler (ekleri de dahil olmak üzere)
gizlidir. Sahibinin onayı olmaksızın içeriği kopyalanamaz, üçüncü kişilere
açıklanamaz veya iletilemez . Bu mesajın gönderilmek istendiği kişi
değilseniz (ya da bu e-postayı yanlışlıkla aldıysanız), lütfen yollayan
kişiyi haberdar ediniz ve mesajı sisteminizden derhal siliniz. Eskişehir
Teknik Üniversitesi, bu mesajın içerdiği bilgilerin doğruluğu veya eksiksiz
olduğu konusunda bir garanti vermemektedir. Bu nedenle, bilgilerin ne
şekilde olursa olsun içeriğinden, iletilmesinden, alınmasından,
saklanmasından Eskişehir Teknik Üniversitesi sorumlu değildir. Bu mesajın
içeriği yazarına ait olup, Eskişehir Teknik Üniversitesi'nin görüşlerini
içermeyebilir. Bu e-posta bizce bilinen tüm bilgisayar virüslerine karşı
taranmıştır.

DISCLAIMER: This e-mail (including any attachments) may contain
confidential and/or privileged information. Copying, disclosure or
distribution of the material in this e-mail without owner authority is
strictly forbidden. If you are not the intended recipient (or have received
this e-mail in error), please notify the sender and delete it from your
system immediately. Eskisehir Technical University makes no warranty as to
the accuracy or completeness of any information contained in this message
and hereby excludes any liability of any kind for the information contained
therein or for the information transmission, reception, storage or use of
such in any way whatsoever. Any opinions expressed in this message are
those of the author and may not necessarily reflect the opinions of
Eskisehir Technical University. This e-mail has been scanned for all
computer viruses known to us.

         [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to