8524d188d7736f7b19c8abb1228e0c430ba0ce65
This commit introduces the use of the `Encode` module to ensure that values being processed in the `WriteReadings` subroutine are correctly encoded in UTF-8. The previous implementation did not account for potential non-UTF-8 encoded data which could lead to issues when updating readings. The change specifically checks if the value (`$v`) is marked as UTF-8 using `Encode::is_utf8()`. If it is, the value is re-encoded to UTF-8 before being passed to `::readingsBulkUpdate()`. This adjustment ensures that all data written to readings maintains proper character encoding, improving compatibility and preventing potential data corruption. No breaking changes are introduced, but it is important for users to validate that their readings correctly display any special characters post-update.
FHEM::NUKIBridge
FHEM::NUKIDevice
Used branching model
- Master branch: Production version (copy of fhem/fhem-mirror/blob/master/fhem/FHEM/73_NUKIBridge.pm)
- Master branch: Production version (copy of [fhem/fhem-mirror/blob/master/fhem/FHEM/74_NUKIBDevice.pm](https://github.com/fhem/fhem-mirror/blob/master/fhem/FHEM/74_NUKIDevice.pm
- Devel branch: Latest development version
Community support
The FHEM Forum is available here for general support.
In case you have a specific question about this module, it is recommended to find the right sub-forum.
It can either be found from the module info card using the FHEM Installer (e.g. using command search <MODULE_NAME>
) or it can be determined from the MAINTAINER.txt file.
Bug reports and feature requests
Identified bugs and feature requests are tracked using Github Issues.
Pull requests / How to participate into development
You are invited to send pull requests to the devel branch whenever you think you can contribute with some useful improvements to the module. The module maintainer will review you code and decide whether it is going to be part of the module in a future release.
Description
Languages
Perl
100%