UI Design Patterns: Character Limits
Looking To Existing Design Patterns To See What Works
Twitter has a good example of a character limit UI.
With the older version of Twitter, you see the character limit on the bottom right of the screen, next to the publish button.
As you start typing, the word allowance decreases.
When you go over the word limit you're still allowed to keep writing but you're shown in red how much you're over plus the Tweet button is disabled.
Twitter now has a progress indicator to show how far you are from reaching the character limit.
Best Practices For Designing A Character Limit UI
It's hard to visualize just what 100, 280, or 500 characters look like on-screen, so it's important to highlight this to the user.
Visual cues like changing the text that's over the limit (mentioned above) convey this.
Another visual cue is to have the size of the text box be roughly the size that represents the max character limit. This will give users a better sense of the limit.