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

Windows support #3

Open
richfitz opened this issue Oct 29, 2015 · 8 comments
Open

Windows support #3

richfitz opened this issue Oct 29, 2015 · 8 comments

Comments

@richfitz
Copy link
Owner

I'm getting test failures on windows 7; emoji conversion is not working there.
screenshot_2015-10-29_16-33-52

Happens in both Rstudio and Rgui (under VMware as I don't have a native machine). Similar failure happened on winbuilder.

@gaborcsardi
Copy link

I'll help testing next week, I have windows at work.
It might just not work on windows, especially not in the cmd terminal.

@yixuan
Copy link

yixuan commented Dec 4, 2015

It seems to be related to the Unicode support on Windows. Actually remoji generated the correct byte sequence \xf0\x9f\x91\8d, but the console cannot recognize it.

@gaborcsardi
Copy link

It seems that windows is a mess and mostly unsupported, and we would need a workaround.

E.g. using the emoji name between colons, or an empty string, when an emoji is outputted. Or we can just use ASCII replacements for some emojis at least. E.g. smileys, and the rest can be empty string.

@richfitz
Copy link
Owner Author

Yeah, sounds good. I'll have another look at windows this week and sort things out a little better. After a couple of weeks dealing with more serious packages I could probably afford to do this package a bit in my train work.

@richfitz
Copy link
Owner Author

I'll see if this update helps at all.

@gaborcsardi
Copy link

Hmm, interesting. If this fixes the fonts, can we detect whether it is
installed?

I am afraid that the encoding conversion code in R will still fail, at
least for most emojis. Anyway, we'll see....
On 24 Jan 2016 21:26, "Rich FitzJohn" notifications@github.com wrote:

I'll see if this update https://support.microsoft.com/en-gb/kb/2729094
helps at all.


Reply to this email directly or view it on GitHub
#3 (comment).

@richfitz
Copy link
Owner Author

No effect here; still just a mess. I wonder if @kevinushey knows if it's possible at all? Or are we at the mercy of what Windows is willing to render here?

@kevinushey
Copy link

Unfortunately I don't know a great solution here, UTF-8 on Windows (and in R + RStudio) is kind of a mess. :/

Surprisingly, R complains if you try to actually construct a string literal using that representation:

> "\xf0\u009f\u0091\u008d"
Error: mixing Unicode and octal/hex escapes in a string is not allowed

Just in case that's relevant...

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

No branches or pull requests

4 participants