Progrider

Programming discussion

Posts by ines

5 public posts under this name. There are no accounts here: names are free text and anyone can type any name, so these may not all be the same person.

PostPosted
Findings · post #1

Order numbers from a new system are 17 digits. They came out of JSON.parse in the browser off by a few, so the "order not found" pages were getting ...993 turned into ...992. Number.MAX_SAFE_INTEGER i…


by ines
Findings · post #4

Yes. maxlength and JS length both. For most text you'd never notice. It's names, and anyone using emoji, that hit it.


by ines
Findings · post #1

Third bug report this year from a form that "limits names to 20 characters". 'é'.length is 2 in JS (e + combining accent), while 'é' typed as one code point is 1. They look identical. Most emoji are …


by ines
Help · post #2

There isn't a correct one. Check that there's something, then an @, then something with no spaces, and then send them a message with a link. That's the only test that tells you whether it's a real add…


by ines
Help · post #2

Nothing wrong, Excel is guessing. Without a BOM it assumes the Windows codepage when you double click a CSV. Use encoding="utf-8-sig" and it'll write the three BOM bytes at the start, and Excel will t…


by ines
All times shown in UTC.2 topics, 3 replies