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

f.path= return invalide string name if it contain emoji #1250

Open
trim21 opened this issue Sep 26, 2023 · 2 comments
Open

f.path= return invalide string name if it contain emoji #1250

trim21 opened this issue Sep 26, 2023 · 2 comments

Comments

@trim21
Copy link

trim21 commented Sep 26, 2023

I have a torrent (I can provide if you need) which all file paths are utf-8 encoded. But becoding invalid string in rpc call:

for example:
套图/推特/211031_万圣节快乐🎃不给🍭不给看🧛‍♀️🧛‍♀️🧛‍♀️.jpg become ??????/??????/211031_?????????????????????????????????????????????????????????????????????????????.jpg

@trim21 trim21 changed the title f.path= return invalide string name f.path= return invalide string name if it contain emoji Sep 26, 2023
@kannibalox
Copy link
Contributor

Unfortunately this is a limitation of the xmlrpc-c library, which only allows unicode characters from the basic multilingual plane: https://xmlrpc-c.sourceforge.io/doc/libxmlrpc_util.html#validate_utf8 (emoji are from the supplementary plane)

@trim21
Copy link
Author

trim21 commented Sep 27, 2023

Unfortunately this is a limitation of the xmlrpc-c library, which only allows unicode characters from the basic multilingual plane: https://xmlrpc-c.sourceforge.io/doc/libxmlrpc_util.html#validate_utf8 (emoji are from the supplementary plane)

said 😢

I found that https://github.com/jesec/rtorrent support json rpc and JSON rpc doesn't have this issue.

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