utils.astring: Add preferred ENCODING
There is no right encoding, but the `locale.getpreferredencoding` suits
most cases. Let's avoid the usually unnecessary `locale` import and
people struggling to remember the most appropriate method and store it
in `avocado.utils.astring`.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
Showing
想要评论请 注册 或 登录