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
How to send chinese characters? #1193
Labels
Comments
Does it work with the text backend?
…On Thu, Apr 26, 2018, 16:06 Kan.Dai ***@***.***> wrote:
Hi,
I want to send chinese characters with errbot + slack. But the message is
messy. For example:
# -*- coding: utf-8 -*-
from errbot import BotPlugin, botcmd, re_botcmd
class Example(BotPlugin):
@BotCmd # flags a command
def tryme(self, msg, args): # a command callable with !tryme
return '您好!' # This string format is markdown.
And in slack, the message turn to:
!tryme
鎮ㄥソ!
So, how can I fix this? Thanks very much!
Dave
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1193>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA7izCMaJbl03mmWSxJBq0VXb70A3acAks5tsiiogaJpZM4TnYmG>
.
|
With the text backend, I got the same thing:
In addition, when I run errbot, the warning message was shown:
|
Can you start the bot under debugger and see where utf-8 is failing us?
…On Thu, Apr 26, 2018, 19:34 Kan.Dai ***@***.***> wrote:
With the text backend, I got the same thing:
***@***.*** <https://github.com/kan> ➡ @errbot <https://github.com/errbot>]
[36m>>> [0m!tryme
鎮ㄥソ!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1193 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA7izFwWuWEhu3qvaPZvqPa_wJeS_D7Lks5tslmNgaJpZM4TnYmG>
.
|
I'm not able to reproduce this issue in the latest release.
Result
If this persist, please reopen the issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I want to send chinese characters with errbot + slack. But the message is messy. For example:
And in slack, the message turn to:
So, how can I fix this? Thanks very much!
Dave
The text was updated successfully, but these errors were encountered: