mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-28 17:12:32 +00:00
98_DSBMobile.pm: Minor Fix in UTF8-Conversion
git-svn-id: https://svn.fhem.de/fhem/trunk@24194 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
99596ab771
commit
961b0f54c0
@ -21,6 +21,7 @@
|
|||||||
#
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# Changelog:
|
# Changelog:
|
||||||
|
# 0.0.09: Minor fix in UTF8-conversion
|
||||||
# 0.0.08: Minor fix, added versioning
|
# 0.0.08: Minor fix, added versioning
|
||||||
##############################################################################
|
##############################################################################
|
||||||
##############################################################################
|
##############################################################################
|
||||||
@ -37,7 +38,7 @@ use HttpUtils;
|
|||||||
use Data::Dumper;
|
use Data::Dumper;
|
||||||
use FHEM::Meta;
|
use FHEM::Meta;
|
||||||
|
|
||||||
my $version = "0.0.08";
|
my $version = "0.0.09";
|
||||||
my $missingModul = "";
|
my $missingModul = "";
|
||||||
|
|
||||||
#eval "use Blocking;1" or $missingModul .= "Blocking ";
|
#eval "use Blocking;1" or $missingModul .= "Blocking ";
|
||||||
@ -326,7 +327,7 @@ sub DSBMobile_getDocsCallback($) {
|
|||||||
|
|
||||||
Log3 $name, 5, "[$name] 2nd nonblocking HTTP Call returning";
|
Log3 $name, 5, "[$name] 2nd nonblocking HTTP Call returning";
|
||||||
Log3 $name, 5, "[$name] GetData - received $data";
|
Log3 $name, 5, "[$name] GetData - received $data";
|
||||||
my $json = DSBMobile_safe_decode_json( $hash, $data );
|
my $json = DSBMobile_safe_decode_json( $hash, latin1ToUtf8($data) );
|
||||||
return unless defined($json);
|
return unless defined($json);
|
||||||
|
|
||||||
my $res = latin1ToUtf8($json);
|
my $res = latin1ToUtf8($json);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user