You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ariatosca.apache.org by "Ran Ziv (JIRA)" <ji...@apache.org> on 2017/05/31 08:01:04 UTC
[jira] [Updated] (ARIA-272) Console logger does not show Unicode
[ https://issues.apache.org/jira/browse/ARIA-272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ran Ziv updated ARIA-272:
-------------------------
Priority: Minor (was: Major)
> Console logger does not show Unicode
> ------------------------------------
>
> Key: ARIA-272
> URL: https://issues.apache.org/jira/browse/ARIA-272
> Project: AriaTosca
> Issue Type: Story
> Reporter: Tal Liron
> Priority: Minor
>
> For example, it shows an operation input value like so:
> {code}
> u'chinese-is-\u4e2d\u6587'
> {code}
> When it should show:
> {code}
> 'chinese-is-中文'
> {code}
> The issue is in {{cli.color}}, specifically {{StringStylizer.format}}, which uses Python's natural conversion objects to strings.
> I think instead we should do our own custom smart conversation that recursively goes through dicts and lists and if it finds a {{basestring}} type it will represent it in Unicode, instead of Python's built-in representation.
> For a starting point, check out {{utils.formatting.safe_repr}}.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)