Recherche avancée

Médias (91)

Autres articles (39)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

Sur d’autres sites (5166)

  • Python UnicodeEncodeError : 'charmap' codec can't encode

    8 août 2015, par Tony Roczz

    I 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 this b'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 Roczz

    I 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 this b'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

    23 février 2021, par Tony Roczz

    I 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)

    &#xA;&#xA;

    print(location.raw)&#xA;

    &#xA;&#xA;

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

    &#xA;&#xA;

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

    &#xA;&#xA;

    print(location.address)    &#xA;

    &#xA;&#xA;

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

    &#xA;&#xA;

    I tried print((location.address).encode("utf-8")) , now am not getting any error but the output printed is like this b&#x27;NH39, Mirz\xc4\x81pur

    &#xA;&#xA;

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

    &#xA;&#xA;

    AttributeError: &#x27;dict&#x27; object has no attribute &#x27;encode&#x27;&#xA;

    &#xA;&#xA;

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

    &#xA;&#xA;

    Edit :(After being marked as duplicate)

    &#xA;&#xA;

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

    &#xA;&#xA;

    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.

    &#xA;&#xA;

    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.

    &#xA;