Let the copyfilepath.py to support chinese file path name.

Hongyi Zhao hongyi.zhao at gmail.com
Fri Aug 23 10:36:56 EDT 2019


Hi,

The following is a gedit plugin which provides a way to copy the current 
file path to the clipboard.

https://github.com/willianveiga/gedit-copy-file-path/blob/master/
copyfilepath.py

But, I try and find that it doesn't support the path/file names including 
chinese characters.

In this case, it will give messy code like this:

dnsmasq/archive/dnsmasq-全功�

How to fix it?

Regards



More information about the Python-list mailing list