Broken at 2 byte character after 1 byte character(englash or number )
qlalfdu opened this issue · comments
2byte + 2byte = OK
ex: 가나
1byte + 2byte = OK
ex: 1가, a가
2byte + englash or number = NG
ex: 가1, 가a
2byte + sign character = OK
ex: 가@
Incoming or outgoing?
Incoming or outgoing?
It happens when I send it to a bot from the desktop.
(laptop > bot)
Markdown text mode is off?
Try to
#define FB_NO_URLENCODE
Before #include fastbot
The same goes for changing setTextMode
#define FB_NO_URLENCODE
#include <FastBot.h>
The result is broken.
So i don't understand this line
2byte + englash or number = NG
ex: 가1, 가a
So 1st and 2nd result is broken?
So 1st and 2nd result is broken?
yes
Breaks down when English or numbers come after Korean
Seems like urlencode problem. I think i can fix it
By the way, 가 is 3 byte char
utils.cpp, line 54, add || c > 126
like this
else if (c <= 38 || c == '+' || c > 126) {
I will make an update soon and include this fix