<span style="background-color: rgb(51, 255, 51);">INFO: Geany 0.14, GTK+ 2.14.4, GLib 2.18.2 </span><br style="background-color: rgb(51, 255, 51);"><span style="background-color: rgb(51, 255, 51);">under ubuntu 8.10</span><br>
<br>(also under window XP)<br><br>the following trouble refers to ubuntu environment:<br><br><b>consider this code:</b><br><br><span style="background-color: rgb(255, 255, 102);">tast = u'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'</span><br style="background-color: rgb(255, 255, 102);">
<span style="background-color: rgb(255, 255, 102);">iera = u'\u00e0\u00e8\u00e9\u00ec\u00f2\u00f9'.encode('utf-8')</span><br style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 102);">car=''</span><br style="background-color: rgb(255, 255, 102);">
<br style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 102);">while car != '!!':</span><br style="background-color: rgb(255, 255, 102);"><br style="background-color: rgb(255, 255, 102);">
<span style="background-color: rgb(255, 255, 102);">    car = raw_input('digita un carattere--->: ')</span><br style="background-color: rgb(255, 255, 102);">    <br style="background-color: rgb(255, 255, 102);">
<span style="background-color: rgb(255, 255, 102);">    if car in iera:</span><br style="background-color: rgb(255, 255, 102);"><br style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 102);">        print 'ok iera', car</span><br style="background-color: rgb(255, 255, 102);">
<br style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 102);">    elif car in tast:</span><br style="background-color: rgb(255, 255, 102);"><br style="background-color: rgb(255, 255, 102);">
<span style="background-color: rgb(255, 255, 102);">            print 'ok tast', car</span><br style="background-color: rgb(255, 255, 102);"><br style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 102);">    elif len(car) > 1:</span><br style="background-color: rgb(255, 255, 102);">
<br style="background-color: rgb(255, 255, 102);"><span style="background-color: rgb(255, 255, 102);">        print 'solo 1 carattere. ne hai messi', len(car)</span><br><br><span style="background-color: rgb(255, 255, 102);"></span>when usin Geany if I type 1 or more normal characters (e.g. 'ab' or 'cdf') or a single character with accent (e.g. 'è' or 'à') the program works well. if I type a group (more than 1) of characters containing an accented character (e.g. 'ghètè' or simply 'ùù'), the program stop working with the error <span style="background-color: rgb(255, 255, 102);">'in <string>' requires string as left operand</span><br>
<br><span style="background-color: rgb(255, 153, 255);">the following, intead, lines refer to the Python shell:</span><br><br>>>> tast = u'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'<br>>>> iera = u'\u00e0\u00e8\u00e9\u00ec\u00f2\u00f9'.encode('utf-8')<br>
>>> car=''<br>>>> while True:<br>    car = raw_input('digita un carattere--->: ')<br>    car = car[0]<br>    if car in iera:<br>        print 'ok iera'<br>    elif car in tast:<br>
        print 'ok tast'<br><br>        <br>digita un carattere--->: sd<br>ok tast<br>digita un carattere--->: d<br>ok tast<br>digita un carattere--->: fdg<br>ok tast<br>digita un carattere--->: f<br>ok tast<br>
digita un carattere--->: r<br>ok tast<br>digita un carattere--->: y<br>ok tast<br>digita un carattere--->: h<br>ok tast<br>digita un carattere--->: èpioè<br>ok iera<br>digita un carattere--->: è<br>ok iera<br>
<br>Note that the instruction <b><span style="color: rgb(0, 153, 0);">car = car[0] </span></b><span style="color: rgb(0, 153, 0);"><font color="#000000">under Geany issues another error: prints a strange character with a question mark inside and moves the following line right. the question is: HAS GEANY PROBLEMS WITH THOSE PARTICULAR CONVERSTIONS?<br>
thanks<br>Virgilio semprini<br></font></span>