Mini-Sylar / Server-Client-ChatApp

Client Server chat app using python sockets and pyqt5
MIT License
12 stars 6 forks source link

Add way to access emojis by using txt file #18

Open Mini-Sylar opened 2 years ago

Mini-Sylar commented 2 years ago

Current implementation involves reading emojis from a text file once a specific button is clicked on looking for a better way to re-implement this

Dark1es commented 1 year ago

hi,I have a question that how you save emoji in .txt ?It's really shock me .bro

Mini-Sylar commented 1 year ago

hi,I have a question that how you save emoji in .txt ?It's really shock me .bro

Hello, It was quite simple actually, a few things you'd need to know is that, emojis are essentially unicode characters -> Unicode

Almost all programming languages have some sort of way to encode characters, with python for instance it is string.encode(encoding=encoding, errors=errors)

Knowing this, the challenge was then to get all those unicodes in a particular order, the one way i could figure it out was to scrape all of them and put them in a .txt file

Procedure

Hope that helps ☺, I'm sure there are various packages that would help you do this exact thing easily tho