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

unicode encoding error fix #1838

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

lodos2005
Copy link

I’ve encountered an issue when working with SMB shares that have Turkish characters in their names, such as “TEST YÖNETİM DOKÜMANI”. The current encoding causes a UnicodeEncodeError, specifically:
UnicodeEncodeError: 'latin-1' codec can't encode character '\u0130' in position 29: ordinal not in range(256)

Screenshot 2024-10-19 at 12 37 54

The problem arises because the latin-1 codec cannot handle certain Turkish characters like ‘İ’. This fix resolves the encoding issue by ensuring proper handling of Unicode characters in SMB share names.
I hope this helps! Feel free to review and let me know if there’s anything I should adjust.

Thanks!

@anadrianmanrique anadrianmanrique added bug Unexpected problem or unintended behavior unicode_issue labels Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected problem or unintended behavior unicode_issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants