Bug 294969 - character counter works differently as the twitter counter
Summary: character counter works differently as the twitter counter
Status: RESOLVED DUPLICATE of bug 285453
Alias: None
Product: choqok
Classification: Applications
Component: Twitter (show other bugs)
Version: 1.2
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Mehrdad Momeny
URL:
Keywords:
: 337381 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-02-27 23:09 UTC by Robert Riemann
Modified: 2015-08-03 18:45 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Riemann 2012-02-27 23:09:15 UTC
Version:           1.2
OS:                Linux

Using umlauts like ä,ö,ü or special utf8 characters like 
Comment 1 Mehrdad Momeny 2012-02-28 02:05:15 UTC
Can you explain more about the issue?
Comment 2 Mehrdad Momeny 2012-02-28 10:09:11 UTC
Related to Robert email to me:

This post is only 136 characters, but Twitter won't let you tweet it:

#Schäuble (#CDU) spielt während der #Griechenland-Debatte im #Bundestag #Sudoku. #iPads werden aus Steuergeldern erstattet. ur1.ca/8f0ax
Comment 3 Mehrdad Momeny 2012-02-28 10:11:30 UTC
And, as I checked it out, the problem is that Twitter will shorten that link to something bigger than it :/
the link (ur1.ca/8f0ax) is only 12 characters, while I think Twitter will shorten(!!) it to a link with 18 characters or so, link :/
Comment 4 Mehrdad Momeny 2014-07-12 03:27:45 UTC
More info from bug 337381:
After shortening an URL, Choqok wrongly counts the number of remaining characters, and ends up with a number too big. This means that a status that is displayed as having four characters left will end up not being sent because it actually contains more than 140 characters. This seems to be due to the way Choqok counts the length of an URL, that is different than Twitter's. Example : The following status shows -20 characters left (ie. an excess of 20 characters) before shortening the URL: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur ut turpis at diam convallis interdum eu a enim metus. http://example.com/testing/long/url.php" After shortening the URL, Choqok reports 5 characters left: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur ut turpis at diam convallis interdum eu a enim metus. bit.ly/1r3uyQT" Sending this tweet, however, fails. This is because, for the same message, Twitter reports an excess of 3 characters, both with or without the shortened URL (since Twitter shortens the URL themselves anyway). From what I can tell, there seems to be two reasons to this: 1- If the option is checked, Choqok doesn't include, and thus doesn't count, the protocol. Twitter does, so "http://" gets counted towards the limit 2- Choqok doesn't take into account that Twitter shortens the URL and counts the number of characters according to the "short_url_length" configuration (see https://dev.twitter.com/docs/tco-link-wrapper/faq). Depending on the shortening service used by Choqok, this can be less or more than what Twitter will count.
Comment 5 Mehrdad Momeny 2014-07-12 03:27:54 UTC
*** Bug 337381 has been marked as a duplicate of this bug. ***
Comment 6 Andrea Scarpino 2015-08-03 18:45:57 UTC
*** This bug has been marked as a duplicate of bug 285453 ***