Implement _encode_nicely method to supress errors
authorStavros Sachtouris <saxtouri@admin.grnet.gr>
Tue, 25 Feb 2014 16:47:27 +0000 (18:47 +0200)
committerStavros Sachtouris <saxtouri@admin.grnet.gr>
Tue, 25 Feb 2014 16:47:27 +0000 (18:47 +0200)
commitc233260511cc5cbae99f1b679b8ba7f49409d0f6
treeb55aa7dc6a3a8d6821b39e22ec0db9bf81712413
parent2813cdecce594629a8a7ce42ac573707db43404b
Implement _encode_nicely method to supress errors

Refs: #5150

Loop over a string and attempt to encode it in a given encoding
If a char fails, replace it with a replacement character
kamaki/cli/commands/__init__.py