thanks a lot for the explantaion, it is clearer in my mind now.
I will try the trick asap (I think thursday because I am quite busy now). I will let you know.

Regards,
chris

Marcin Cieslak wrote:
On 5/23/05, christophe blin <cblin@tennaxia.com> wrote:
  
 Can you give more precisions please. I am not very familiar with Python
(this is my first project with this language) so I do not understand what
you mean by \u notation.
    

The problem you have is not specific to Python - you try to encode
unicode string in the
source file without givin its encoding (I guess in your case it's UTF-8).

Can you try putting the following in your code: 

querystring = u"select id from project where name='T2 :
Conformit\u00E9: plan fonctionnel'"


projid = db.loadVal(querystring.encode("iso-8859-15"))
if projid == None:
   print "projid1:None"
else:
   print "projid1:"+projid

projid = db.loadVal(querystring.encode("utf-8"))
....

See also description of Python unicode implementation

http://www.python.org/peps/pep-0100.html

taking into account jython differences

http://www.jython.org/docs/differences.html

Hope this helps,

--marcin

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maxq.tigris.org
For additional commands, e-mail: users-help@maxq.tigris.org



  

-- 
_______________________________________________________________________________________
Tennaxia, www.tennaxia.com,
société de services auprès des entreprises industrielles pour une gestion globale de l'environnement
_______________________________________________________________________________________
Siège social :
6, rue Léonard de Vinci - 53001 Laval Cedex - Tél : 02 43 49 75 50 - Fax : 02 43 49 75 77
Agence Paris :
 47, rue Servan - 75011 Paris  - Tél : 01 43 57 17 05 - Fax : 08 25 19 19 61
Agence Lyon :
Parc du Chater - 63 rue de la garenne - 69340 FRANCHEVILLE - Tél : 04 72 39 98 14 - Fax : 04 72 39 93 85

Les informations contenues dans ce message envoyées par TENNAXIA sont confidentielles et sont établies à l'attention exclusive de leurs destinataires. L'accès à ce message par toute autre personne n'est pas autorisé. Si vous n'êtes pas le destinataire de ce message, merci de le détruire et d'en avertir l'expéditeur : toute altération, copie, distribution ou toute action prise ou omise sont interdites et peuvent être illégales.
The information in this message sent by TENNAXIA is confidential and may be legally privileged. It is intended solely for the addressee(s). Access to this message by anyone else is unauthorized. If you are not the intended recipient, please delete it and notify the sender : any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.