Bug report: In meeting chat, pasted formatting shifts right 2 characters per curly apostrophe/quote (UTF-8 byte offsets?)
When I paste formatted text from Google Docs into Zoom chat, some bold spans land a few characters to the right of where they should be. They start late and end late by the same amount.
I narrowed down the cause: each non-ASCII character that appears before a bold word shifts that word's bold by 2 characters. In my case it was a single curly apostrophe (’, U+2019) in "sharer’s". Replacing it with a straight apostrophe (') fixed every bold span after it.
Example, with [brackets] marking where the bold appeared:
Intended: others may occasionally [reflect] or [resonate] what they hear ... [ask] yourself
Result: others may occasionally re[flect o]r re[sonate w]hat they hear ... as[k y]ourself
Bold words before the curly apostrophe were placed correctly. Every bold word after it was off by exactly 2 characters.
Likely cause: the curly apostrophe is 3 bytes in UTF-8 but 1 character. A shift of exactly 3 - 1 = 2 suggests the formatting ranges are computed in UTF-8 bytes but applied as character positions. I haven’t gone on to do other testing, but other non-ASCII characters (curly double quotes, em dashes, ellipses, accented letters, emoji) likely shift formatting the same way, and links are probably affected too. This may explain other reports of bold and partially-linked text appearing in the wrong places.
Steps to reproduce:
1. In Google Docs, with smart quotes on, write a line containing a curly apostrophe (e.g. "sharer’s"), with a bold word later in the text.
2. Copy it and paste it into the Zoom chat compose box.
3. The bold appears 2 characters to the right of where it should be.
4. Replace the curly apostrophe with a straight one (') and repeat. The bold now lands correctly.
Workaround: turn off smart quotes in Google Docs (Tools > Preferences > Use smart quotes) and replace existing curly quotes with straight ones before copying.
Environment: Zoom Workplace for Windows 11, version 7.2.5 (51704)
