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

Sofort description length need to count bytes #308

Open
Natureshadow opened this issue Mar 23, 2022 · 3 comments
Open

Sofort description length need to count bytes #308

Natureshadow opened this issue Mar 23, 2022 · 3 comments

Comments

@Natureshadow
Copy link
Contributor

I hate it when I am right and know in advance what bugs others will implement…

As predicted in #296, today we sent a 40-character description to Klarna containing a unicode ö, and they did what I said – they complained that it is 41 characters long ;).

Fix will come some time today.

@WhyNotHugo
Copy link
Member

It seems they need it to be 40 bytes long, not 40 characters long.

In [1]: len("Ö".encode())
Out[1]: 2

@Natureshadow
Copy link
Contributor Author

It seems they need it to be 40 bytes long, not 40 characters long.

Yep, exactly as I said ;).

@WhyNotHugo
Copy link
Member

This should be useful: https://stackoverflow.com/a/43848928

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