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

Problems with Umlauts #154

Closed
nicoschreibt opened this issue Jun 13, 2021 · 5 comments · Fixed by #155
Closed

Problems with Umlauts #154

nicoschreibt opened this issue Jun 13, 2021 · 5 comments · Fixed by #155
Assignees
Labels

Comments

@nicoschreibt
Copy link

Somebody on Stackoverflow asked me to post this here, so:

I'm working with slackr to send automated text to a slack channel. That works perfectly on Linux. However, if I send the same message from my Windows PC there's a problem with umlauts.

slackr_bot("äääää")
No encoding supplied: defaulting to UTF-8.
In slack:

<e4><e4><e4><e4><e4>

@mrkaye97 mrkaye97 self-assigned this Jun 13, 2021
@mrkaye97 mrkaye97 added the bug label Jun 13, 2021
@mrkaye97
Copy link
Owner

Thanks for opening this issue! It was me who asked about it.

I'll look into this and see if it's a bug in slackr or not -- it probably is. Might be Windows-specific though. If it is, it'll be tough to me to replicate on MacOS / Linux.

I'll poke around and see if I can fix this

@mrkaye97
Copy link
Owner

Okay, so before I go digging around in slackr, do you mind trying this @nicoschreibt:

Sys.setlocale(category = "LC_ALL", locale = "German")

and then trying slackr_bot again? That might fix the issue

@nicoschreibt
Copy link
Author

ok, tried that. still the same issue.
> slackr::slackr_bot("ääääää") No encoding supplied: defaulting to UTF-8.

Slack:
<e4><e4><e4><e4><e4><e4>

@mrkaye97
Copy link
Owner

Gotcha, thanks. I'll look into this and see if I can find a fix

@mrkaye97 mrkaye97 linked a pull request Jul 5, 2021 that will close this issue
@mrkaye97
Copy link
Owner

mrkaye97 commented Jul 5, 2021

@nicoschreibt This is hopefully fixed in slackr 2.4.0. Do you mind installing the new version with devtools::install_github("mrkaye97/slackr") to see if it fixes your issue. You'll still probably need to set Sys.setlocale(category = "LC_ALL", locale = "German")

Sorry for taking so long to get around to this, and let me know if the new version helps!

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

Successfully merging a pull request may close this issue.

2 participants