[IronPython] Unable to compare two junk character string in Iron Python.Do I need to include any particular encoding.??
jgehrcke at googlemail.com
Tue Apr 26 14:20:55 CEST 2011
first of all, you did not provide an error message, but it looks like a
The first answer should help a lot.
Furthermore, this seems to be good literature on the field:
Regarding the application of # -*- coding: coding -*-, read here:
So, in your case it looks like a good idea to use e.g. UTF-8 as source
encoding. Check the settings of the text editor you are using and set
the source encoding to UTF-8 (if it does not allow this, you should use
another editor). Then, tell (Iron)Python that your source code is
encoded by UTF-8 by putting this into the file header: # -*- coding:
On 04/26/2011 01:51 PM, saurabh rawat wrote:
> Hmm..you mean to say # -*- coding: utf-8-*- like this..will give it a
> try..i have actually but no success or may be I am missing the correct
> way to specify it.
> Thanks and Rgds,
> " /*The ultimate test of a relationship is to disagree
> but to hold hands*............/..."
> --- On *Tue, 26/4/11, Lukas Cenovsky /<cenovsky at bakalari.cz>/* wrote:
> From: Lukas Cenovsky <cenovsky at bakalari.cz>
> Subject: Re: [IronPython] Unable to compare two junk character
> string in Iron Python.Do I need to include any particular encoding.??
> To: "Discussion of IronPython" <users at lists.ironpython.com>
> Date: Tuesday, 26 April, 2011, 4:46 PM
> 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:
>> I have problem while working with text containing the unknown
>> 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.
>> (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
>> # -*- coding: ascii -*-
>> But still the same behavior, i think some problem with the coding
>> - encoding standard.
>> Could plz somebody help.
>> " /*The ultimate test of a relationship is to
>> disagree but to hold hands*............/..."
>> Users mailing list
>> Users at lists.ironpython.com </mc/compose?to=Users at lists.ironpython.com>
> -----Inline Attachment Follows-----
> Users mailing list
> Users at lists.ironpython.com </mc/compose?to=Users at lists.ironpython.com>
> Users mailing list
> Users at lists.ironpython.com
More information about the Ironpython-users