
Recherche avancée
Autres articles (54)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Changer son thème graphique
22 février 2011, parLe thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
Modifier le thème graphique utilisé
Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
Il suffit ensuite de se rendre dans l’espace de configuration du (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...)
Sur d’autres sites (7119)
-
Python UnicodeEncodeError : 'charmap' codec can't encode when using GEOPY
23 février 2021, par Tony RoczzI have been fiddling with python geopy and I tried the basic commands given in the documentation. But I am getting the UnicodeEncodeError when trying the
raw
command(to geolocate a query to an address and coordinates)


print(location.raw)




Error
UnicodeEncodeError: 'charmap' codec can't encode character '\xa9' in position 83: character maps to <undefined></undefined>



Then I tried the other way around (To find the address corresponding to a set of coordinates)



print(location.address) 




I am getting the same error
UnicodeEncodeError: 'charmap' codec can't encode character '\u0101' in position 10: character maps to <undefined></undefined>



I tried
print((location.address).encode("utf-8"))
, now am not getting any error but the output printed is like thisb'NH39, Mirz\xc4\x81pur



and when using
print((location.raw).encode("utf-8"))
I am getting error


AttributeError: 'dict' object has no attribute 'encode'




Can anyone tell me what is going on here and what I should do to get a proper output ?



Edit :(After being marked as duplicate)



Based on the solution given in this problem I am reporting on how it does not solve my problem



What I wanted to know is why do I get the UnicodeEncodeError when trying out the basic sample codings given in the documentation and it did answer for that.



If I want to use it an application how do I solve the error and I cannot have the application running on separate IDE or send the output to a external file since my application will function based on the output from geopy, I want the application to run in the terminal as my other applications do.


-
Python UnicodeEncodeError : 'charmap' codec can't encode when using GEOPY
9 août 2015, par Tony RoczzI have been fiddling with python geopy and I tried the basic commands given in the documentation. But I am getting the UnicodeEncodeError when trying the
raw
command(to geolocate a query to an address and coordinates)print(location.raw)
Error
UnicodeEncodeError: 'charmap' codec can't encode character '\xa9' in position 83: character maps to <undefined></undefined>
Then I tried the other way around (To find the address corresponding to a set of coordinates)
print(location.address)
I am getting the same error
UnicodeEncodeError: 'charmap' codec can't encode character '\u0101' in position 10: character maps to <undefined></undefined>
I tried
print((location.address).encode("utf-8"))
, now am not getting any error but the output printed is like thisb'NH39, Mirz\xc4\x81pur
and when using
print((location.raw).encode("utf-8"))
I am getting errorAttributeError: 'dict' object has no attribute 'encode'
Can anyone tell me what is going on here and what I should do to get a proper output ?
Edit :(After being marked as duplicate)
Based on the solution given in this problem I am reporting on how it does not solve my problem
What I wanted to know is why do I get the UnicodeEncodeError when trying out the basic sample codings given in the documentation and it did answer for that.
If I want to use it an application how do I solve the error and I cannot have the application running on separate IDE or send the output to a external file since my application will function based on the output from geopy, I want the application to run in the terminal as my other applications do.
-
Evolution #4754 : Mettre à jeu le jeu des icônes de extensions
30 avril 2021, par b bAmha, SVG partout et zou, et si nécessaire on pourra générer du PNG en masse à partir des SVG.
Je proposais donc le pack Yaru https://github.com/ubuntu/yaru/tree/master/icons/src/fullcolor/mimetypes (icônes d’Ubuntu) complet, sobre mais il est trop coloré et "en relief" maintenant qu’on est plutôt en mode flat sur le jeu d’icônes du privé, exemples :
https://github.com/ubuntu/yaru/blob/master/icons/src/fullcolor/mimetypes/text-markdown.svg
https://github.com/ubuntu/yaru/blob/master/icons/src/fullcolor/mimetypes/x-office-spreadsheet.svgSinon, il y a aussi Papirus & Vimix, et surtout Numix qui est très fourni :
https://github.com/PapirusDevelopmentTeam/papirus-icon-theme/blob/master/Papirus/64x64/mimetypes/application-pdf.svg
https://github.com/vinceliuice/vimix-icon-theme/blob/master/src/scalable/mimetypes/application-pdf.svg
https://github.com/numixproject/numix-icon-theme/blob/master/Numix/64/mimetypes/application-pdf.svg