Answer the question
In order to leave comments, you need to log in
How to make a greeting after the /start command in a Telegram bot?
How to make a greeting after the /start command in a Telegram bot? So that after this command my message comes out
Answer the question
In order to leave comments, you need to log in
A bit of shitty code). Suitable only for my case where only two encodings are possible
<?php
$str = "╨С╨░╤В╤М╨║╨░ ╨Ф╨╕╨│╨╗╨╛╨▓";
$ret = iconv("UTF-8", "CP866", $str);
echo var_dump(strlen($str));
echo var_dump(strlen($ret));
if (strlen($ret) < strlen($str)/2) {
echo "New " . $ret;
} else {
echo "Old " . $str;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question