You should use the same encoding as has you special character string.
Have you tried using utf-8 instead of ascii?

--
-- Lukáš


On 26.4.2011 11:56, saurabh rawat wrote:

HI,
I have problem while working with text containing the unknown characters
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.

example

(0)song = The goodgoddevil robzombie pfjsdfgolsdg á é ú
(1)if song == "The goodgoddevil robzombie pfjsdfgolsdg á é ú"

it exits as soon as it tries to execute the line (1)


I have go-ogled and found that something like this is to be  included
#!/usr/bin/python
# -*- coding: ascii -*-

But still the same behavior, i think some problem with the coding - encoding standard.
Could plz somebody help.

Rgds,
Saurabh
                                
               " The ultimate test of a relationship is to disagree but to hold hands...............
              
 
_______________________________________________ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to