Skip to content

Support non-utf8 path in SFTPClient - #1914

Open
Inndy wants to merge 1 commit into
paramiko:mainfrom
Inndy:non-utf8-sftp
Open

Inndy wants to merge 1 commit into
paramiko:mainfrom
Inndy:non-utf8-sftp

Conversation

@Inndy

@Inndy Inndy commented Oct 18, 2021

Copy link
Copy Markdown

This PR add ability to customize text encoding to use in SFTP client which can solve issue #546

The only problem is that repeating encoding='utf8' everywhere is not elegant at all. Do some one have better idea?

I think it could be solved by giving default value None to encoding and assign default value it in py3compat.{u,b}

@Inndy

Inndy commented Jul 1, 2022

Copy link
Copy Markdown
Author

We may use sys.getdefaultencoding() as default encoding value for better compatibility

@bskinn

bskinn commented Jul 6, 2022 •

Copy link
Copy Markdown
Contributor

@bitprophet, I flagged this for policy decision in case there's a centralized discussion of encoding issues somewhere else that I'm not aware of yet, where it would be good to cross-reference this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants