When obtaining code output, instead of Turkish letters, it displays "?"

Whenever I run the code you see below, I get an output in R-Studio containing a '?' sign. I've tried the 'UTF-8' method in every possible way. I believe this is a bug caused by the latest update. My laptop model is Huawei Matebook D15. I've performed all the updates on my computer. My graphics card is AMD Ryzen 5000 series, and I have an Intel Iris processor. Please provide a solution as I am pursuing a master's degree, and I don't have another computer. I need to resolve this issue. Thank you.

matrix(1:9, byrow = TRUE, nrow = 3)
genclerbirligi <- c(4000, 1500)
hacettepe <- c(1000, 500)
ankaragucu <- c(500, 100)
toplam <- c(genclerbirligi, hacettepe, ankaragucu)
toplam
ankara <- matrix(toplam, nrow = 3, byrow = TRUE)
ankara
takım <- c("genclerbirligi", "hacettepe", "ankaragucu")
saha <- c("iç saha", "dış saha")
rownames(ankara) <- takım
colnames(ankara) <- saha
ankara

i saha dı�\u009f saha
[1,] 4000 1500
[2,] 1000 500
[3,] 500 100

Correct output should be as follows:

           iç saha dış saha

genclerbirligi 4000 1500
hacettepe 1000 500
ankaragucu 500 100

Hi, welcome to the forum.

Can you supply us with the output from

sessionInfo()

Just copy and paste it between
```

```

Thanks

Hi,
I am providing the requested information with the "sessionInfo()" code. Thank you very much

sessionInfo()
R version 4.3.2 (2023-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 11 x64 (build 22621)

Matrix products: default

locale:
[1] C
system code page: 65001

time zone: Europe/Istanbul
tzcode source: internal

attached base packages:
[1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached):
[1] compiler_4.3.2 tools_4.3.2

Thanks.

I do not like the look of that `locale' but I lack the expertise, especially in Windows to make any recommendations.

Here is my SessionInfo

R version 4.3.2 (2023-10-31)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 22.04.3 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.10.0 
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.10.0

locale:
 [1] LC_CTYPE=en_CA.UTF-8       LC_NUMERIC=C               LC_TIME=en_CA.UTF-8        LC_COLLATE=en_CA.UTF-8    
 [5] LC_MONETARY=en_CA.UTF-8    LC_MESSAGES=en_CA.UTF-8    LC_PAPER=en_CA.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C       

time zone: America/New_York
tzcode source: system (glibc)

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
 [1] compiler_4.3.2    pryr_0.1.6        magrittr_2.0.3    lobstr_1.1.2      cli_3.6.1         tools_4.3.2       glue_1.6.2       
 [8] rstudioapi_0.15.0 Rcpp_1.0.11       stringi_1.8.2     codetools_0.2-19  stringr_1.5.1     lifecycle_1.0.4   rlang_1.1.2      
[15] pak_0.6.0      
1 Like

Your attempt to help me made me very happy. I hope someone will come and help me out of this trouble. :smiley:

You might try

Resetting RStudio Desktop's State

and then do a reinstall of R and RStudio.

1 Like

This method unfortunately did not work. I had already uninstalled the R and Rstudio programs with an uninstallation application before. Unfortunately, it did not work. Could it be a problem due to Windows 11?

I think you misunderstand me. Typically, the RStudio Desktop does not get deleted when you un-install and re-install RStudio. I think this is true in Windows 11 but I am not a Windows user so I could be wrong.

Given Windows infamous hostility to non-ASCII fonts it could well be a Windows problem but if it is I would expect you to see it elsewhere, say in a word processor .

You code is working fine for me but I'm in Linux.

matrix(1:9, byrow = TRUE, nrow = 3)
#>      [,1] [,2] [,3]
#> [1,]    1    2    3
#> [2,]    4    5    6
#> [3,]    7    8    9
genclerbirligi <- c(4000, 1500)
hacettepe <- c(1000, 500)
ankaragucu <- c(500, 100)
toplam <- c(genclerbirligi, hacettepe, ankaragucu)
toplam
#> [1] 4000 1500 1000  500  500  100
ankara <- matrix(toplam, nrow = 3, byrow = TRUE)
ankara
#>      [,1] [,2]
#> [1,] 4000 1500
#> [2,] 1000  500
#> [3,]  500  100
takım <- c("genclerbirligi", "hacettepe", "ankaragucu")
saha <- c("iç saha", "dış saha")
rownames(ankara) <- takım
colnames(ankara) <- saha
ankara
#>                iç saha dış saha
#> genclerbirligi    4000     1500
#> hacettepe         1000      500
#> ankaragucu         500      100

Created on 2023-12-23 with reprex v2.0.2

1 Like

Completely deleting the file and re-uploading didn't work, but I solved the problem ;D. There is a Turkish character issue for RStudio and AMD Application in the latest update of Windows 11 (23H2). I reverted Windows 11 to its oldest version, excluding the latest update, and then performed a system update again, and the problem is completely solved for now. Thanks to everyone <3

Ah, great. Long ago when I used Windows I used to dread updates. Linux has its peculiarities but I have never missed Windows.

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.