<p></p>
<p dir="auto">Is this limitation documented for real anywhere? When you say "char" what exactly do you mean? Do you mean 255 UTF-8 bytes? libosmium says the strings can be up to 256 <em>four byte codepoints</em>, which is 1024 bytes of whatever you want. MySQL schema interpretation of varchar is different between versions, so can either mean 255 codepoints or 255 bytes of UTF-8.</p>
<p dir="auto">It seems that people are further confused about this in the ecosystem, because <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="898825180" data-permission-text="Title is private" data-url="https://github.com/MarcusWolschon/osmeditor4android/issues/1401" data-hovercard-type="issue" data-hovercard-url="/MarcusWolschon/osmeditor4android/issues/1401/hovercard" href="https://github.com/MarcusWolschon/osmeditor4android/issues/1401">MarcusWolschon/osmeditor4android#1401</a> references this issue, but the "fix" they have only truncates values based on UTF-16 values, which will allow values larger than 255 UTF-8 bytes, but will fail on values 255 codepoints or fewer, when those codepoints are represented with a surrogate pair.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/2025#issuecomment-1252839128">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLLPDVZWCO52FJFW2FLV7IJJDANCNFSM4F3G7XSA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLO5SGDAONQNESPBIGDV7IJJDA5CNFSM4F3G7XSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOJKWM5WA.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/issues/2025/1252839128</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/2025#issuecomment-1252839128",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/2025#issuecomment-1252839128",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>