Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String Encoding Error in Notebook output #8546

Closed
4 tasks done
4Urban opened this issue Dec 6, 2020 · 8 comments
Closed
4 tasks done

String Encoding Error in Notebook output #8546

4Urban opened this issue Dec 6, 2020 · 8 comments
Assignees

Comments

@4Urban
Copy link

@4Urban 4Urban commented Dec 6, 2020

System details

RStudio Edition : Desktop
RStudio Version : RStudio 1.4.1066
OS Version      : Windows 10/8/7 (64-bit)
R Version       : R x64 4.0.3

Steps to reproduce the problem

To reproduce the problem, no need to get any data.
It occurs at any time when logging any character that is not the English alphabet.

For example, when running the below code for the first time, the result is as follows.

library(dplyr)

image

It's same in the console.

image

Describe the problem in detail

However, if I run the same code in the console for the first time(not again, after restarting the R), it prints without any error.

image

That is, I get an error ONLY when I interact in the Notebook console.

Below is my basic settings in the Notebook.

image

Describe the behavior you expected

I want to get correctly encoded messages in the Notebook console as same as in the console.

  • I have read the guide for submitting good bug reports.
  • I have installed the latest version of RStudio, and confirmed that the issue still persists.
  • If I am reporting a RStudio crash, I have included a diagnostics report.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
@kevinushey kevinushey added this to the v1.4-juliet-rose milestone Dec 7, 2020
@kevinushey kevinushey self-assigned this Dec 7, 2020
@kevinushey
Copy link
Contributor

@kevinushey kevinushey commented Dec 7, 2020

Note for testing: to get Korean output on an English copy of Windows, you'll need to activate a Korean locale and also request Korean message translations. This can be done with:

Sys.setlocale(locale = "Korean")
Sys.setenv(LANGUAGE = "ko")

@kevinushey
Copy link
Contributor

@kevinushey kevinushey commented Dec 7, 2020

Interestingly, errors are properly translated -- it appears just package startup messages (and perhaps other conditions) are the problem?

Screen Shot 2020-12-07 at 2 47 20 PM

@4Urban
Copy link
Author

@4Urban 4Urban commented Dec 8, 2020

You're right. I can reproduce that problem only when starting packages too. In my memory, all the error messages in Korean also showed the same problem before, but it doesn't not now except startup.

I'll comment later when I get the same problem in other conditions.

But can you inspect what causes that problem?

Thank you!

@4Urban 4Urban closed this as completed Dec 8, 2020
@kevinushey kevinushey reopened this Dec 8, 2020
@kevinushey
Copy link
Contributor

@kevinushey kevinushey commented Dec 8, 2020

This is indeed an RStudio issue: we're not properly handling the encoding of R conditions. Will keep taking a look!

@4Urban
Copy link
Author

@4Urban 4Urban commented Dec 8, 2020

Ok! Thank you!

@jmcphers
Copy link
Member

@jmcphers jmcphers commented Dec 21, 2020

Fixed in Juliet Rose via #8565.

@4Urban
Copy link
Author

@4Urban 4Urban commented Dec 22, 2020

@kevinushey Thank you for the fast fixing!

@mikebessuille mikebessuille reopened this Jan 15, 2021
@kevinushey kevinushey removed their assignment Jan 19, 2021
@valerie-rstudio
Copy link

@valerie-rstudio valerie-rstudio commented Feb 4, 2021

Verified Fixed

RStudio Edition : Desktop
RStudio Version : 1.4.1545
OS Version      : Windows 10
R Version       : 4.0.3

Verified that package startup messages in Notebook and Console are now properly UTF-8 encoded. Tested with the Korean language.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants