<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi, all.<br>
    <blockquote cite="mid:[email protected]" type="cite">
      <blockquote type="cite">
        <blockquote type="cite">
          <pre wrap="">----
return $m['HTML']('Привет');
----
now:
----
return $m['HTML']('\xd0\x9f\xd1\x80\xd0\xb8\xd0\xb2\xd0\xb5\xd1\x82');
----
</pre>
        </blockquote>
      </blockquote>
      <pre wrap="">more info: new code use 'pytranslator' instead of 
'translator' module.
Looks like pytranslator doesn't process

# -*- coding: utf-8 -*-

line at the start of source file.</pre>
    </blockquote>
    Sorry, I meant 'pycompiler', not 'pytranslator', of course.<br>
    <br>
    Ok, I tried to replace 'pycompiler' module import with native
    'compiler' in translator_proto.py.<br>
    With this all works fine. Javascript produced is:<br>
    <tt>----<br>
              return $m['HTML']('\u041f\u0440\u0438\u0432\u0435\u0442');<br>
      ----</tt><br>
    which is absolutely correct and is showed fine in browser.<br>
    So the problem is indeed with 'pycompiler' module.<br>
    I also noted that in both <code></code>translator_proto-KEES.py and
    translator_proto-KLUEV.py files 'compiler' module is imported, not
    'pycompiler'. But 'pycompiler' is imported in translator_dict.py.<br>
    <br>
    Seva<br>
    <br>
  </body>
</html>

Reply via email to