-
Notifications
You must be signed in to change notification settings - Fork 2.3k
getting encoding message issue when sent ordinary text #907
Comments
Can you post a snippet of your code? |
i used the sample using with |
And you didnt edit any code? Did you follow the instructions as he posted on the medium article? My guess without seeing your project that either you copy pasted some bad code, or missed a step. |
hmm, just use |
@peterswimm did you try it? |
@hbakhtiyor I did not! You might also try posting the question in our deve community if you are 100% sure about your code and Slack side setup: |
Any more on this? Having encoding issues with Slack and the / character. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
up |
Have you tried with this #240 ? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
The issue description here is ambiguous, but I'm encountering this when sending messages from the bot. Some random outgoing messages will be url-encoded, with normal characters like apostrophe coming out as My workaround is to use a import { decode } from 'he';
controller.middleware.send.use((bot, message, next) => {
// Decode outgoing messages to make sure there are no weird URI encoded characters.
// Encoding happens automatically sometimes for unknown reasons.
message.text = decode(message.text);
next();
}); Note: These issues occur with the Twilio adapter, but the Emulator works fine. |
when i sent
Ooops, something went wrong!
, it displaysOoops, something went wrong%21
the
!
char encoded to%21
how to resolve it?
The text was updated successfully, but these errors were encountered: