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

Cannot send messages with more than 128 characters with Windows #5

Open
Forstulen opened this issue Feb 10, 2021 · 1 comment
Open

Comments

@Forstulen
Copy link

Hello,

I found an issue with this plugin while sending json payloads encoded in Base64.
They usually hit more than 128 characters and this line (located in StringUtils.cpp) doesn't send the expected result:

const char* originalStr = TCHAR_TO_ANSI(*str);

I managed to solve this by changing this line by something else found on the internet (Here):

auto originalFString = StringCast<ANSICHAR>(*str);
const char* originalStr = originalFString.Get();

Hope it can help.

Regards.

@Impulse87
Copy link

Same issue with Linux, 127 bytes work fine, but 128+ bytes are scrambled. Copied the state from the windows StringUtils.cpp and it works for Linux now, too.

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

2 participants