[Wapt] Problème d'accents avec python

Bastien HERMITTE bhermitte at b2pweb.com
Tue Jan 8 15:37:09 CET 2019


Bonjour,

Ça devrait fonctionner en mettant un "u" avant la chaine de caractère 
pour forcer l'encodage unicode :
rac_lapin = u"C:\\Users\\Public\\Desktop\\Narramus - Compère Lapin.lnk"

Cordialement,
Bastien

Le 08/01/2019 à 15:33, Informatique Challans a écrit :
> Bonjour et très bonne année à tous,
>
>
> Je me retrouve devant un problème à cause de l'encodage utf-8.
>
> J'ai besoin de désinstallé un raccourci sur le bureau. Jusque là, 
> c'est facile. Mais le nom de ce raccourci contient un accent grave (è) :
>
>
>
> # -*- coding: utf-8 -*-
> from setuphelpers import *
> uninstallkey = []
>
> rac_lapin="C:\\Users\\Public\\Desktop\\Narramus - Compère Lapin.lnk"
>
> def install():
> if isfile(rac_lapin):
>     remove_desktop_shortcut('Narramus - Compère Lapin'
>
>
> Merci beaucoup pour votre aide
>
> 08012019_152727_0.png
>
>
> _______________________________________________
> WAPT mailing list
> WAPT at lists.tranquil.it
> http://lists.tranquil.it/listinfo/wapt

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20190108/7a92a0fb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 08012019_152727_0.png
Type: image/png
Size: 16470 bytes
Desc: not available
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20190108/7a92a0fb/attachment.png>


More information about the WAPT mailing list