Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

متن فارسی #14

Open
BluestarCo opened this issue Jul 19, 2019 · 1 comment
Open

متن فارسی #14

BluestarCo opened this issue Jul 19, 2019 · 1 comment

Comments

@BluestarCo
Copy link

با سلام بنده دارم با تابع sendText متن ارسال میکنم

زبان انگلیسی ارسال میشه بدون مشکل
اما در فارسی با ارور زیر روبه رو میشم

Fail : json_encode error: Malformed UTF-8 characters, possibly incorrectly encoded

این هم کد من

$bot->sendText($chat_id,"سلام");

@sallsabil
Copy link

sallsabil commented Sep 25, 2019

فایل php ذخیره شده باید utf8 باشد.
و فکر کنم این مشکلتان را حل کند:
$data = mb_convert_encoding($data, 'UTF-8', 'UTF-8');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants