Skip to content

Commit

Permalink
Correction dans la gestion des caractères accentués
Browse files Browse the repository at this point in the history
  • Loading branch information
2bprog committed Feb 16, 2020
1 parent 25bab59 commit 32b0f06
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v0.0.7-beta (16/02/2020)

* Correction dans la gestion des caractères accentués

## v0.0.6-beta (16/02/2020)

* Correction dans la lecture des périphériques eedomus
Expand Down
2 changes: 1 addition & 1 deletion eedomus_plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"plugin_id": "bbdomzevents",
"name_fr": "Domoticz - Events",
"icon": "domzevents.png",
"version": "0.0.6",
"version": "0.0.7",
"creation_date": "2020-01-16",
"modification_date": "2020-02-16",
"author": "Benjamin B.<br><a target='_blank' href='https://github.com/2bprog/eedomus-domoticzevent-plugin'>Sources sur github <img src='/img/external.png'></a>",
Expand Down
24 changes: 17 additions & 7 deletions php/2B_domzevents.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?
/*
Fichier : 2B_domzevents.php
version : 0.0.5
version : 0.0.7
*/

/*
Expand Down Expand Up @@ -763,13 +763,23 @@ function sdk_ansi_Utf8($valor)

$ansi_Utf8 = array(

"à" => "\u00e0" ,
"è" => "\u00e8" ,
"é" => "\u00e9" ,
"ê" => "\u00ea" ,
"ë" => "\u00eb" ,
"ù" => "\u00f9" ,
"à" => "\u00e0",
"â" => "\u00e2",
"ä" => "\u00e4",
"ç" => "\u00e7",
"è" => "\u00e8",
"é" => "\u00e9",
"ê" => "\u00ea",
"ë" => "\u00eb",
"î" => "\u00ee",
"ï" => "\u00ef",
"ô" => "\u00f4",
"ö" => "\u00f6",
"ù" => "\u00f9",
"û" => "\u00fb",
"ü" => "\u00fc",
"°" => "\u0080" );

return strtr($valor, $ansi_Utf8);
}

Expand Down

0 comments on commit 32b0f06

Please sign in to comment.