• I have a blog with Cyrillic. And pattern:
    Завтра: #post# #url# #date#

    Tweet result (real sample):
    Завтра: Беспокойный день. Много крайностей и суеты. Направленность дня зависит не только от собственны http://astrobene.ru/story/5152 Янв 4, 2016

    If I set 140 number of characters, then I receive an error. And the tweet will not be published.

    If I set 94 number of characters, then OK.

    https://ww.wp.xz.cn/plugins/wp-to-twitter/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    Does your server have the PHP Normalizer extension installed? That extension is required to do an accurate count of characters in non-latin alphabets.

    What version of WP to Twitter are you using?

    Thread Starter C-In-OFF

    (@c-in-off)

    WP to Twitter 3.1.9

    php.ini:

    extension=php_intl.dll

    Thread Starter C-In-OFF

    (@c-in-off)

    phpinfo:

    Internationalization support enabled
    version 1.1.0
    ICU version 49.1.2
    ICU Data version 49.1.2

    Directive Local Value Master Value
    intl.default_locale no value no value
    intl.error_level 0 0

    Plugin Author Joe Dolson

    (@joedolson)

    Well, that looks right. What exactly is it that you’re setting at 140 characters, by the way? Is it the length of the #post# excerpt?

    If so, that’s not going to work; you don’t want your #post# excerpt to be longer than whatever is left after you’ve already used the URL and date.

    You’d only be able to use a 140 character post excerpt if you don’t have anything else in the Tweet.

    Thread Starter C-In-OFF

    (@c-in-off)

    Thanks Joe for U time for my problem.

    I tried to post only Latin characters string. 140 symb. + #post# #url# #date#

    “This is 140 Latin symb. sting: qwert yuiop asdfg hjkl zxcvb nm 123456789 QWERT YUIOP ASDFG HJKL ZXCVB NM 0987654321 qwert yuiop asdfg hjkl .”

    Tweet sent successfully.
    Завтра: This is 140 Latin symb. sting: qwert yuiop asdfg hjkl zxcvb nm 123456789 QWERT YUIOP ASDFG HJKL http://astrobene.ru/story/5205 Янв 7, 2016
    ——————

    Then, I tried to post only Cyrillic characters string. 140 symb. + #post# #url# #date#

    “This is 140 Cyrillic symb. sting: йцукенгшщзхъ фывапролджэ ячсмитьбю ЙЦУКЕНГШЩЗХЪ ФЫВАПРОЛДЖЭ ЯЧСМИТЬБЮ йцукенгшщзхъ фывапролджэ ячсмитьбю .”

    403 Forbidden: The request is understood, but has been refused by Twitter. Possible reasons: too many Tweets, same Tweet submitted twice, Tweet longer than 140 characters.

    ——————
    P.S.
    WordPress updated to v4.4.1

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Wrong cuts overall length Cyrillic Posts’ is closed to new replies.