<div dir="ltr">And also:<br>&nbsp;<br>Getting this in console when trying to generate report via HTMLTestRunner (it displayed text correctly when tried simple unittest.main)<br>&lt;td colspan=&#39;5&#39; align=&#39;center&#39;&gt;&lt;a href=&quot;javascript:showOutput(&#39;pt1.1&#39;, &#39;test_create_account_to_check: Creating sample account for next test&#39;)&quot;&gt;pass&lt;/a&gt;<br>
&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;output_list[&#39;pt1.1&#39;] = &#39;!!! True\nÐ"омен \&#39;foobar\&#39; Ð·Ð°Ð½ÑÑ‚. Ð&nbsp;екомендованные ÑÐ²Ð¾Ð±Ð¾Ð´Ð½Ñ‹Ðµ Ð´Ð¾Ð¼ÐµÐ½Ñ‹: ffoobar foobar.foobar foofoo fofo\n[]\n&#39;;&lt;/script&gt;<br>
&lt;/td&gt;<br>&lt;/tr&gt;<br><br><br><br><div class="gmail_quote">On Thu, Jul 17, 2008 at 10:01 AM, Oleg Oltar &lt;<a href="mailto:oltarasenko@gmail.com">oltarasenko@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr">beryl:~ oleg$ env<br>MANPATH=/usr/share/man:/usr/local/share/man:/usr/X11/man<br>TERM_PROGRAM=Apple_Terminal<br>TERM=xterm-color<br>SHELL=/bin/bash<br>TMPDIR=/var/folders/PC/PCtFE4gQGiqpQymiAScfnk+++TM/-Tmp-/<br>

Apple_PubSub_Socket_Render=/tmp/launch-UNXiC6/Render<br>TERM_PROGRAM_VERSION=237<br>USER=oleg<br>COMMAND_MODE=unix2003<br>SSH_AUTH_SOCK=/tmp/launch-hfpsIl/Listeners<br>__CF_USER_TEXT_ENCODING=0x1F6:0:0<br>PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin<br>

PWD=/Users/oleg<br>LANG=ru_RU.UTF-8<br>SHLVL=1<br>HOME=/Users/oleg<br>PYTHONPATH=:/Users/oleg/Documents/wishes_Test<br>LOGNAME=oleg<br>DISPLAY=/tmp/launch-1kgALC/:0<br>SECURITYSESSIONID=a206d0<div><div></div><div class="Wj3C7c">
<br><br><br><div class="gmail_quote">
On Thu, Jul 17, 2008 at 9:58 AM, Oleg Oltar &lt;<a href="mailto:oltarasenko@gmail.com" target="_blank">oltarasenko@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div dir="ltr">See previous message (sent it few seconds ago)<div><div></div><div><br><br><div class="gmail_quote">On Thu, Jul 17, 2008 at 9:55 AM, Mark Tolonen &lt;<a href="mailto:metolone%2Bgmane@gmail.com" target="_blank">metolone+gmane@gmail.com</a>&gt; wrote:<br>


<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">





<div bgcolor="#ffffff">
<div><font size="2">OK, your console is set to &#39;ascii&#39; (&#39;cp437&#39; was my example and 
is the<br>Windows console encoding).&nbsp; &#39;ascii&#39; won&#39;t be able to display 
Russian.<br>It shouldn&#39;t have displayed the &quot;ИзвениÑ&quot; characters 
either.<br>Are you still running on the same terminal that display 
those<br>characters?&nbsp; Can you change your terminals encoding preference via 
an<br>environment variable?<br>--<br>Mark</font></div>
<blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
  <div>&quot;Oleg Oltar&quot; &lt;<a href="mailto:oltarasenko@gmail.com" target="_blank">oltarasenko@gmail.com</a>&gt; wrote in 
  message <a href="news:b4fc2ad80807162333k6badc3d3of87f402003a3a00a@mail.gmail.com" target="_blank">news:b4fc2ad80807162333k6badc3d3of87f402003a3a00a@mail.gmail.com</a>...</div><div><div></div><div>
  <div dir="ltr"><br>And in case:<br># coding: utf-8<br><br>
  <blockquote>import traceback <br>try:<br>&nbsp;&nbsp;&nbsp; raise 
    Exception(u&#39;Зрегиться&#39;)<br>except Exception,e:<br>&nbsp;&nbsp;&nbsp; print 
    traceback.format_exc().decode(&#39;utf-8&#39;).encode(&#39;cp437&#39;, 
  &#39;replace&#39;)<br></blockquote><br>Getting<br><br>beryl:~ oleg$ python 
  ./wish/newaccount/reg.py<br>Traceback (most recent call last):<br>&nbsp; File 
  &quot;./wish/newaccount/reg.py&quot;, line 5, in &lt;module&gt;<br>&nbsp;&nbsp;&nbsp; 
  raise Exception(u&#39;?????????&#39;)<br>Exception: &lt;unprintable Exception 
  object&gt;<br><br><br><br>My console settings:<br><br>In [1]: import 
  sys<br><br>In [2]: sys.getdefaultencoding()<br>Out[2]: &#39;ascii&#39;<br><br>In [3]: 
  sys.stdout.encoding<br>Out[3]: &#39;US-ASCII&#39;<br><br><br>
  <div class="gmail_quote">On Thu, Jul 17, 2008 at 9:30 AM, Oleg Oltar &lt;<a href="mailto:oltarasenko@gmail.com" target="_blank">oltarasenko@gmail.com</a>&gt; wrote:<br>
  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div dir="ltr">OK<br>the output:<br><br>
    <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
      <div># coding: utf-8<br><br>import traceback 
      <br>try:<br></div>&nbsp;&nbsp;&nbsp; raise Exception(u&#39;Зрегиться&#39;)
      <div><br>except Exception,e:<br>&nbsp;&nbsp;&nbsp; print 
      traceback.format_exc().decode(&#39;utf-8&#39;)</div></blockquote>
    <div><br>
    <div><br>&gt;&gt;&gt; Traceback (most recent call 
    last):<br></div>&nbsp; File 
    &quot;/var/folders/PC/PCtFE4gQGiqpQymiAScfnk+++TM/-Tmp-/py46506ECT&quot;, line 7, in 
    &lt;module&gt;
    <div><br>&nbsp;&nbsp;&nbsp; print 
    traceback.format_exc().decode(&#39;utf-8&#39;)<br></div>UnicodeEncodeError: &#39;ascii&#39; 
    codec can&#39;t encode characters in position 148-156: ordinal not in range(128) 
    <br><br><br><br></div>
    <div>
    <div></div>
    <div><br>
    <div class="gmail_quote">On Thu, Jul 17, 2008 at 8:13 AM, Mark Tolonen &lt;<a href="mailto:metolone%2Bgmane@gmail.com" target="_blank">metolone+gmane@gmail.com</a>&gt; wrote:<br>
    <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
      <div bgcolor="#ffffff">
      <div><font size="2">The Exception is output in the encoding of the source 
      file.&nbsp; If the terminal you are displaying the exception on is in a 
      different encoding, it will be garbled.&nbsp; I&#39;m not familiar with OS X&#39;s 
      terminal.&nbsp; Try running python and printing 
      sys.stdout.encoding.</font></div>
      <div><font size="2"></font>&nbsp;</div>
      <div><font size="2">Alternatively, wrap your code in a try/except handler 
      and translate the exception yourself.</font></div>
      <div><font size="2"></font>&nbsp;</div>
      <div><font size="2">&nbsp;&nbsp;&nbsp; # coding: utf-8<br>&nbsp;&nbsp;&nbsp; 
      import traceback<br>&nbsp;&nbsp;&nbsp; try:<br></font><font size="2">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; raise 
      Exception(u&#39;Зарегистрироваться&#39;)<br>&nbsp;&nbsp;&nbsp; except 
      Exception,e:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; print 
      traceback.format_exc().decode(&#39;utf-8&#39;)</font></div>
      <div><font size="2"></font>&nbsp;</div>
      <div><font size="2">The last line translates the utf-8 traceback into 
      Unicode.&nbsp; Printing Unicode will encode the output with the terminal&#39;s 
      decoding.&nbsp; If there are characters it can&#39;t display, you&#39;ll still get 
      an error, though.&nbsp; You can be more explicit however:</font></div>
      <div><font size="2"></font>&nbsp;</div>
      <div><font size="2">&nbsp;&nbsp;&nbsp; print 
      traceback.format_exc().decode(&#39;utf-8&#39;).encode(&#39;cp437&#39;,&#39;replace&#39;)</font></div>
      <div><font size="2"></font>&nbsp;</div>
      <div><font size="2">In this case you&#39;ll get ? whenever a character can&#39;t be 
      represented in the selected encoding.&nbsp; cp437, for example, can&#39;t 
      display any russian characters, so for me (on Windows) I just get all 
      ???????????.&nbsp; When I tried it with a character string that could be 
      displayed in cp437, it worked fine:</font></div>
      <div><font size="2"></font>&nbsp;</div>
      <div><font size="2">
      <div>&nbsp;&nbsp;&nbsp; Traceback (most recent call 
      last):<br></div>&nbsp;&nbsp;&nbsp; &nbsp; File &quot;&lt;stdin&gt;&quot;, line 1, in 
      &lt;module&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp; File &quot;t4.py&quot;, line 4, in 
      &lt;module&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; raise 
      Exception(&#39;MàΓ£ΦΘΩδ&#39;)<br>&nbsp;&nbsp;&nbsp; Exception: 
      MàΓ£ΦΘΩδ</font></div>
      <div><font size="2"></font>&nbsp;</div>
      <div><font size="2">Another option is to redirect the output to a file and 
      read the file with an editor that can display utf-8 (such as Notepad on 
      Windows).</font></div>
      <div><font size="2"></font>&nbsp;</div>
      <div><font size="2">&nbsp;&nbsp;&nbsp; python testfile.py 
      2&gt;error.txt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # 
      this redirects stderr to a file.</font></div>
      <div><font size="2"></font>&nbsp;</div>
      <div><font size="2">Hope that helps,</font></div>
      <div><font size="2">Mark</font></div>
      <blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
        <div>&quot;Oleg Oltar&quot; &lt;<a href="mailto:oltarasenko@gmail.com" target="_blank">oltarasenko@gmail.com</a>&gt; wrote in message <a href="news:b4fc2ad80807162050s1de6b6aalc86203c7e1fe3df5@mail.gmail.com" target="_blank">news:b4fc2ad80807162050s1de6b6aalc86203c7e1fe3df5@mail.gmail.com</a>...</div>



        <div>
        <div></div>
        <div>
        <div dir="ltr">
        <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">The 
          code</blockquote>
        <div>&nbsp;# -*- coding: utf-8 
        -*-<br>#!/usr/bin/python<br><br><br>&quot;&quot;&quot;<br><br>This test case check how 
        system works in the situation, when user tries to use already<br>used 
        username (domain)<br><br>We are creating two accounts with such 
        parameters:<br>1. Sex = Femle<br>2. Name1=Name2 = foobar%S <br>3. Pass1 
        = Name<br>4. Pass2 = Name<br>5. Email address1 = Email address2 =&nbsp; 
        <a href="mailto:Name@meta.ua" target="_blank">Name@meta.ua</a> 
        <br><br><br>In the test we use verification point - warning message 
        about incorrect input of domain name and the<br>sugestion 
        message<br><br>&quot;&quot;&quot;<br><br>from selenium import selenium<br>import 
        unittest, time, re<br>import HTMLTestRunner<br>import config<br>import 
        Creating_account_basic<br><br><br><br><br>class 
        Same_domain_name(unittest.TestCase):<br>&nbsp;&nbsp;&nbsp; 
        <br>&nbsp;&nbsp;&nbsp; def 
        setUp(self):&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://self.name" target="_blank">self.name</a> = 
        &quot;foobar&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.email = <a href="http://self.name" target="_blank">self.name</a> + &quot;@<a href="http://meta.ua" target="_blank">meta.ua</a>&quot; 
        <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.verificationErrors = 
        []<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.selenium = 
        selenium(&quot;localhost&quot;, 4444,config.browser, 
        config.link)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        self.selenium.start()<br><br>&nbsp;&nbsp;&nbsp; def 
        test_create_account_to_check(self):&nbsp; 
        <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;&quot;&quot;Creating sample 
        account for next test&quot;&quot;&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        sel = self.selenium<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        sel.open(&quot;/&quot;)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        sel.click(u&quot;link=Регистрация&quot;)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        sel.wait_for_page_to_load(&quot;70000&quot;)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        sel.click(&quot;id_gender_1&quot;)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        sel.type(&quot;id_first_name&quot;, <a href="http://self.name" target="_blank">self.name</a>)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        sel.type(&quot;id_last_name&quot;, <a href="http://self.name" target="_blank">self.name</a>)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        sel.type(&quot;id_email&quot;, 
        self.email)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        sel.type(&quot;id_username&quot;,&nbsp; <a href="http://self.name" target="_blank">self.name</a>)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        #sel.wait_for_condition(sel.is_element_present(&quot;check_username_block&quot;), 
        70000)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        time.sleep(10)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print 
        &quot;!!!&quot;, 
        sel.is_element_present(&quot;check_username_block&quot;)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        sel.type(&quot;id_password&quot;,&nbsp; <a href="http://self.name" target="_blank">self.name</a>)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        print 
        sel.get_text(&quot;check_username_block&quot;).decode(&#39;cp-1252&#39;)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        sel.type(&quot;id_password2&quot;, <a href="http://self.name" target="_blank">self.name</a>)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        sel.click(u&quot;//input[@value=&#39;Зарегистрироваться&#39;]&quot;)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        sel.wait_for_page_to_load(&quot;70000&quot;)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        if config.debugMode is 
        True:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        time.sleep(5)<br><br><br>&nbsp;&nbsp;&nbsp; def 
        tearDown(self):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        self.selenium.stop()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print 
        self.verificationErrors<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        self.assertEqual([], self.verificationErrors)<br><br>if __name__ == 
        &quot;__main__&quot;:<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; 
        unittest.main()<br>&nbsp;&nbsp;&nbsp; 
        #HTMLTestRunner.main()<br>&nbsp;<br></div>
        <div>&nbsp;</div><br>
        <div class="gmail_quote">On Thu, Jul 17, 2008 at 6:47 AM, Oleg Oltar 
        &lt;<a href="mailto:oltarasenko@gmail.com" target="_blank">oltarasenko@gmail.com</a>&gt; wrote:<br>
        <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
          <div dir="ltr">In [1]: import sys<br><br>In [2]: 
          sys.getdefaultencoding()<br>Out[2]: &#39;ascii&#39;<br><br>In [3]: 
          sys.stdout.encoding<br>Out[3]: &#39;US-ASCII&#39; 
          <div>
          <div></div>
          <div><br><br>
          <div class="gmail_quote">On Thu, Jul 17, 2008 at 6:29 AM, Oleg Oltar 
          &lt;<a href="mailto:oltarasenko@gmail.com" target="_blank">oltarasenko@gmail.com</a>&gt; wrote:<br>
          <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
            <div dir="ltr">Seems need help there. Start getting 
            <div><br><br>Traceback (most recent call last):<br></div>&nbsp; File 
            &quot;./newaccount/Same_domain_name.py&quot;, line 56, in 
            test_create_account_to_check<br>&nbsp;&nbsp;&nbsp; print 
            sel.get_text(&quot;check_username_block&quot;)<br>UnicodeEncodeError: &#39;ascii&#39; 
            codec can&#39;t encode characters in position 0-4: ordinal not in 
            range(128)<br><br><br>when trying to get the text of one of the 
            elements. <br><br>How to solve it? 
            <div>
            <div></div>
            <div><br><br>
            <div class="gmail_quote">On Thu, Jul 17, 2008 at 5:11 AM, Oleg Oltar 
            &lt;<a href="mailto:oltarasenko@gmail.com" target="_blank">oltarasenko@gmail.com</a>&gt; wrote:<br>
            <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
              <div dir="ltr">OK,<br><br>I just run the program from terminal. OS: 
              OS X, IDLE = Emacs:).<br><br>Yep used the string &quot;# -*- coding: 
              utf-8 -*-&quot; to setup encoding.... 
              <div>
              <div></div>
              <div><br><br>
              <div class="gmail_quote">On Thu, Jul 17, 2008 at 4:14 AM, Kent 
              Johnson &lt;<a href="mailto:kent37@tds.net" target="_blank">kent37@tds.net</a>&gt; wrote:<br>
              <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Another 
                possibility - do you have a coding declaration in your 
                source<br>file, something like<br># -*- coding: &lt;encoding 
                name&gt; -*-<br><br>If so, does the coding declaration match the 
                actual encoding of the file?<br><font color="#888888"><br>Kent<br></font>
                <div>
                <div></div>
                <div><br>On Wed, Jul 16, 2008 at 5:11 PM, Kent Johnson &lt;<a href="mailto:kent37@tds.net" target="_blank">kent37@tds.net</a>&gt; wrote:<br>&gt; On Wed, Jul 
                16, 2008 at 2:40 PM, Oleg Oltar &lt;<a href="mailto:oltarasenko@gmail.com" target="_blank">oltarasenko@gmail.com</a>&gt; wrote:<br>&gt;&gt; 
                Hi I am using unittest framework with 
                selenium.<br>&gt;&gt;<br>&gt;&gt; When I tried this code (my 
                verification point)<br>&gt;&gt;<br>&gt;&gt; &nbsp; &nbsp; &nbsp; 
                &nbsp; self.assertEqual(True, sel.is_text_present(u&quot;Извените 
                пароли не<br>&gt;&gt; совпадают&quot;), &quot;System didn&#39;t give a correct 
                warning about the password<br>&gt;&gt; 
                misstype&quot;)<br>&gt;&gt;<br>&gt;&gt;&gt; Where u&quot;Извените пароли 
                не совпадают&quot; is russian = &quot;Sorry passwords 
                aren&#39;t<br>&gt;&gt;&gt; equal&quot;, and sel.is_text_present - 
                searches text string on the page<br>&gt;&gt;<br>&gt;&gt; The 
                output I get in case of failure 
                was:<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; Traceback (most recent 
                call last):<br>&gt;&gt;<br>&gt;&gt; &nbsp; File 
                &quot;./newaccount/Password_matching.py&quot;, line 50, in<br>&gt;&gt; 
                test_passwordMatching<br>&gt;&gt; &nbsp; &nbsp; 
                self.assertEqual(True, 
                sel.is_text_present(u&quot;Извените<br>&gt;&gt; Ð¿Ð°Ñ€Ð¾Ð»Ð¸ 
                Ð½Ðµ Ñ Ð¾Ð²Ð¿Ð°Ð´Ð°ÑŽÑ‚&quot;), &quot;System didn&#39;t give a 
                correct<br>&gt;&gt; warning about the password 
                misstype&quot;)<br>&gt;&gt;<br>&gt;&gt; AssertionError: System didn&#39;t 
                give a correct warning about the password<br>&gt;&gt; 
                misstype<br>&gt;&gt;<br>&gt;&gt; Is there any way to get normal 
                russian text instead of these strange D chars<br>&gt;&gt; 
                &quot;Изве....&quot;<br>&gt;<br>&gt; I don&#39;t have the solution but 
                maybe I can give you a useful clue. The<br>&gt; D characters are 
                most likely the utf-8 encoding of the Russian text,<br>&gt; when 
                displayed as if it is latin-1. So something in the system 
                is<br>&gt; converting the text to utf-8 and your console 
                probably has latin-1 or<br>&gt; cp1252 encoding.<br>&gt;<br>&gt; 
                Some details might help - how are you running the program - 
                console,<br>&gt; IDLE...? What OS? What are the values of 
                sys.getdefaultencoding() and<br>&gt; 
                sys.stdout.encoding?<br>&gt;<br>&gt; 
              Kent<br>&gt;<br></div></div></blockquote></div><br></div></div></div></blockquote></div><br></div></div></div></blockquote></div><br></div></div></div></blockquote></div><br></div></div></div>
        <p></p>
        <hr>

        <p></p>_______________________________________________<br>Tutor 
        maillist&nbsp; -&nbsp; <a href="mailto:Tutor@python.org" target="_blank">Tutor@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>


</blockquote></div><br>_______________________________________________<br>Tutor 
      maillist &nbsp;- &nbsp;<a href="mailto:Tutor@python.org" target="_blank">Tutor@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br><br>


</blockquote></div><br></div></div></div></blockquote></div><br></div>
  <p>
  </p><hr>

  <p></p>_______________________________________________<br>Tutor maillist&nbsp; 
  -&nbsp; 
<a href="mailto:Tutor@python.org" target="_blank">Tutor@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br></div></div></blockquote>


</div>
<br>_______________________________________________<br>
Tutor maillist &nbsp;- &nbsp;<a href="mailto:Tutor@python.org" target="_blank">Tutor@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
<br></blockquote></div><br></div></div></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div>