ariatosca-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ran Ziv (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (ARIA-272) Console logger does not show Unicode
Date Wed, 31 May 2017 08:04:04 GMT

     [ https://issues.apache.org/jira/browse/ARIA-272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ran Ziv resolved ARIA-272.
--------------------------
    Resolution: Duplicate

> 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)

Mime
View raw message