diff --git a/fhem/CHANGED b/fhem/CHANGED index a2ffba8b1..1cea6a558 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 98_todoist: UTF in project title for Unicode Icons and Umlauts - bugfix: 36_Vallox: Fixed MultiReading Issue - feature: 70_BRAVIA: add requestReboot (thx schnakker) - change: 57_SSCal: commandref reviewed diff --git a/fhem/FHEM/98_todoist.pm b/fhem/FHEM/98_todoist.pm index d2f307bb4..11e051303 100644 --- a/fhem/FHEM/98_todoist.pm +++ b/fhem/FHEM/98_todoist.pm @@ -17,7 +17,7 @@ eval "use Date::Parse;1" or $missingModule .= "Date::Parse "; ####################### # Global variables -my $version = "1.3.5"; +my $version = "1.3.6"; my $srandUsed; @@ -984,7 +984,7 @@ sub todoist_GetTasksCallback($$$){ # set some internals (project data) if ($project) { - $hash->{PROJECT_NAME}=$project->{name}; + $hash->{PROJECT_NAME}=encode_utf8($project->{name}); $hash->{PROJECT_COLOR}=$project->{color}; $hash->{PROJECT_ORDER}=$project->{child_order}; if ($project->{user_id}) { @@ -2197,7 +2197,7 @@ sub todoist_Html(;$$$) { my $dueDate = defined($hash->{helper}{DUE_DATE}{$_})?$hash->{helper}{DUE_DATE}{$_}:""; my $responsibleUid = defined($hash->{helper}{RESPONSIBLE_UID}{$_})?$hash->{helper}{RESPONSIBLE_UID}{$_}:""; - $responsibleUid = $hash->{helper}{USER}{NAME}{$responsibleUid} if ($responsibleUid ne ""); + $responsibleUid = $hash->{helper}{USER}{NAME}{$responsibleUid} if ($responsibleUid ne "" && defined($hash->{helper}{USER}{NAME}{$responsibleUid})); my $dueDateClass = $dueDate ne ""?" todoist_dueDate":""; my $responsibleUidClass = $responsibleUid ne ""?" todoist_responsibleUid":"";