Marko Oldenburg 8524d188d7 Add UTF-8 encoding for reading bulk updates
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.
2025-10-15 06:44:38 +02:00
2021-12-10 21:59:48 +01:00
2021-11-30 10:02:49 +01:00

FHEM::NUKIBridge

FHEM::NUKIDevice

Used branching model

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
No description provided
Readme 1.6 MiB
Languages
Perl 100%