-
Notifications
You must be signed in to change notification settings - Fork 236
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
unicode utf-8 #11
Comments
Have you tried pasting the Arabic text and saving the source file as UTF-8 or Unicode? Works in UTF-8 w/o BOM for me. You will also need to change @yukuku Why did we use |
oh thank .. now its work |
who to calls in the simsimi URL ? utf-8 Because now is not working :( |
What are you asking? Paste your code for the URL. |
When change msg.encode('utf-8'), to 'text': msg, What needs to be changed ? to simsim work with arabic This code : if getEnabled(chat_id): |
Update: It seems you don't need to change anything for Simsimi. The original code works already. Here: (snip) But Simsimi probably won't respond anything in Arabic anyway. It seems to respond in English only. Just ensure you replaced the other place correctly: change Do you know Python properly btw? |
When I write in Arabic .. stops working |
I pasted your Arabic text as a message to the bot. Simsimi replied some English text like "Hi" and "hello". The bot didn't stop working. Again, do you know Python properly? |
Before I change 'text': msg.encode('utf-8') to 'text': msg but When it was changed to 'text': msg if I write in Arabic .. |
Reply method: remove the encode call Then everything will work fine. You can test with my bot aaron_bot |
when i send arabic text to aaron_bot its stop :( |
@hmhmat Ha! Thanks for that. I checked my logs and fixed it. Try sending some Arabic text now. You can get my source code by asking my bot |
i want all file of your bot :) i need all files |
@hmhmat The source is provided so you can refer to it and correct your own source. It's not right to blindly put my source in your project and try to run it. My source is already running fine in my bot. If you really want to run my source, create a new file
I did this so that my token is not publicly retrievable through the And also rename the source file name to |
oh thank you @ADTC How can stop simsmi ? |
You cannot stop simsimi. It's an external service. You can just remove the part that sends requests to simsimi. |
Thanks you when i insert Command this line don't work in bot only ?! |
import sys |
elif 'what time' in text:
reply('look at the top-right corner of your screen!')
i want bot reply arabic text
like this
reply('اهلا بكم')
The text was updated successfully, but these errors were encountered: