Explorar o código

[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 %!s(int64=11) %!d(string=hai) anos
pai
achega
489cd4f594
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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>