[Wapt] Problème d'accents avec python

Informatique Challans informatique at challans.fr
Tue Jan 8 15:33:23 CET 2019


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

[Image:POMMIER-Ludovic_INFORMATIQUE.png]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20190108/f99268cd/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/f99268cd/attachment.png>


More information about the WAPT mailing list