瀏覽代碼

[metastore] Support of UTF-8 in the comments and names of tables

if value.contains(chinese):
    print "'ascii' codec can't decode byte 0xe4 in position 0: ordinal not in range(128)"
cwalet 11 年之前
父節點
當前提交
489cd4f594
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      apps/metastore/src/metastore/templates/describe_table.mako

+ 2 - 2
apps/metastore/src/metastore/templates/describe_table.mako

@@ -156,8 +156,8 @@ ${ components.menubar() }
                   <tbody>
                     % for name, value in table.properties:
                       <tr>
-                        <td>${ name }</td>
-                        <td>${ value }</td>
+                        <td>${ smart_unicode(name) }</td>
+                        <td>${ smart_unicode(value) }</td>
                       </tr>
                      % endfor
                   </tbody>