【问题标题】:How to see unicode values in GAE Development Console Datastore Viewer?如何在 GAE 开发控制台数据存储查看器中查看 unicode 值?
【发布时间】:2012-02-29 18:49:29
【问题描述】:

Unicode 字符串作为列表的一部分存储在 GAE 数据存储中。结果,像http://localhost:8080/_ah/admin/datastore/edit?key=... 这样的页面会显示像

这样的值
[u'latin characters', u'\u0432\u043b\u0430\u0434\u0438\u043c\u0438\u0440\u043e\u0432']

所以,我无法阅读第二个字符串下隐藏的内容。有什么办法可以解决吗?

【问题讨论】:

    标签: google-app-engine google-cloud-datastore


    【解决方案1】:

    长期解决方案:在http://code.google.com/p/googleappengine/issues/entry 提交错误 短期解决方案:使用 Python:

    """
    >>> print u'\u0432\u043b\u0430\u0434\u0438\u043c\u0438\u0440\u043e\u0432'.encode('utf-8')
    владимиров
    """
    

    FWIW,相同的打印命令将在交互控制台中工作: http://localhost:8080/_ah/admin/interactive

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-07
      • 2018-07-20
      • 2017-10-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多