mcrapet / plowshare

Command-line tool and engine for managing sharing websites
GNU General Public License v3.0
850 stars 88 forks source link

[request] a function that removes non-breaking spaces #41

Closed Raziel-23 closed 8 years ago

Raziel-23 commented 8 years ago

When I was working on solidfiles I encountered that file size contains a non-breaking space. Those examples shows how to deal with them. I can use sed to remove them, but maybe it should be in the core. Feel free to close this issue if you think it is not worth.

mcrapet commented 8 years ago

I think I will enhance strip() to deal with that.

Raziel-23 commented 8 years ago

I was rather thinking about translating all kinds of non-breaking spaces :D, including  ,  ,  . I know that there are only 5 modules that remove  . I don't know how you think, but maybe such function or enhanced strip that translate all kinds of non-breaking spaces (not only \xC2\?\xA0) would be more useful in the future.

mcrapet commented 8 years ago

html_to_utf8 is already available.

Raziel-23 commented 8 years ago

I didn't know about it, thanks.