Modify ↓
#617 closed defect (fixed)
Twitter support sends HTML entities and counts them incorrectly
Reported by: | Owned by: | geert | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Version: | 1.2.7 | |
Keywords: | Cc: | ||
IRC client+version: | Client-independent | Operating System: | Public server |
OS version/distro: |
Description
Since http://code.bitlbee.org/lh/bitlbee/revision/564 and thus in 1.2.7, BitlBee sends HTML entities, but the counter introduced in http://code.bitlbee.org/lh/bitlbee/revision/570 counts every single character of the entity.
I don't know what's best practice, BitlBee should either:
- count HTML entities as single characters (should work with Twitter) or
- not send HTML entites, since they are optional according to http://apiwiki.twitter.com/Things-Every-Developer-Should-Know#7Encodingaffectsstatuscharactercount
Attachments (0)
Change History (3)
comment:1 Changed at 2010-05-19T20:05:12Z by
comment:2 Changed at 2010-05-22T15:23:32Z by
Resolution: | → fixed |
---|---|
Status: | new → closed |
I think this is fixed already. I successfully managed to tweet a message with fifty angle brackets, which means they get counted as one character, not four.
comment:3 Changed at 2010-05-22T15:59:04Z by
I can confirm it's fixed with http://code.bitlbee.org/lh/bitlbee/revision/583
Note: See
TracTickets for help on using
tickets.
changeset:devel,583 fixes this at least partially.
Counting HTML entities as a single character doesn't (always) seem to work so that's not the way to go. :-(
A full solution would probably to count <> as 4 chars.