<!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 text="#000000" bgcolor="#ffffff">
    You should use the same encoding as has you special character
    string.<br>
    Have you tried using utf-8 instead of ascii?<br>
    <br>
    --<br>
    -- Lukáš<br>
    <br>
    <br>
    On 26.4.2011 11:56, saurabh rawat wrote:
    <blockquote cite="mid:336142.89876.qm@web137414.mail.in.yahoo.com"
      type="cite">
      <table border="0" cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td style="font: inherit;" valign="top"><br>
              HI, <br>
              I have problem while working with text containing the
              unknown characters<br>
              I have a method which compare the variable song with "some
              special character string"  and return true and false on
              the match and mismatch respectively.<br>
              <br>
              example<br>
              <br>
              (0)song = The goodgoddevil robzombie pfjsdfgolsdg Ã¡
              Ã© Ãº<br>
              (1)if song == "The goodgoddevil robzombie
              pfjsdfgolsdg Ã¡ Ã© Ãº"<br>
              <br>
              it exits as soon as it tries to execute the line (1) <br>
              <br>
              <br>
              I have go-ogled and found that something like this is to
              be  included<br>
              #!/usr/bin/python<br>
              # -*- coding: ascii -*-<br>
              <br>
              But still the same behavior, i think some problem with the
              coding - encoding standard.<br>
              Could plz somebody help.<br>
              <br>
              Rgds,<br>
              Saurabh<br>
              <div>            <font color="#ff0000" face="arial black">                    
                </font></div>
              <div><font color="#ff0000" face="arial black">              <font
                    color="#2d2d2d"> <font size="3">" <font size="2"><font
                          face="comic sans ms" size="5"><em><strong>The
                              ultimate test of a relationship is to
                              disagree but to hold hands</strong>............</em></font>...</font></font>" </font></font></div>
              <div><font color="#2d2d2d">               </font></div>
              <div> </div>
            </td>
          </tr>
        </tbody>
      </table>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a>
<a class="moz-txt-link-freetext" href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a>
</pre>
    </blockquote>
  </body>
</html>