Skip to content

Decode Emoji byte strings into unicode strings if using Python 3 #85

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

Merged
merged 5 commits into from
Nov 10, 2015

Conversation

jh0ker
Copy link
Member

@jh0ker jh0ker commented Oct 22, 2015

I used a class decorator to call a function upon class creation, that decodes every class attribute of the type 'bytes' into 'str' if sys.version_info.major == 3

Fix for #80

@jh0ker
Copy link
Member Author

jh0ker commented Oct 22, 2015

Hey, I just realized I messed up programming languages in the docstrings of telegram/emoji.py. It says 'Class' instead of 'type'. Maybe you could fix it, so I don't have to create another pull request :)

This was referenced Oct 23, 2015
@franciscod
Copy link
Contributor

My #24 fix was wrong: the emojis should always be strings, not byte arrays... ,maybe we should dig deeper on py2 and py3 unicode compatibility, many bugs come from these things..

leandrotoledo added a commit that referenced this pull request Nov 10, 2015
Decode Emoji byte strings into unicode strings if using Python 3
@leandrotoledo leandrotoledo merged commit 1879cff into python-telegram-bot:master Nov 10, 2015
@github-actions github-actions bot locked and limited conversation to collaborators Aug 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy