소스 검색

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