Koha-clms/Koha/Item
Tomas Cohen Arazi 8bc4409773
Bug 24606: Fix encoding issues on decoded content
This patch makes the `decoded_contents` method UTF-8 encode the data
before calling the relevant decode_json, as expected by the JSON library
[1].

To test:
1. Apply the regression tests patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Item/Template.t
=> FAIL: Tests fail!
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass!

[1] `Any decoding or encoding (e.g. to UTF-8 or UTF-16) needs to be done
yourself, e.g. using the Encode module.` https://metacpan.org/pod/JSON

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-11-11 15:38:18 -03:00
..
Search Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Transfer Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Attributes.pm Bug 28445: Split and join on ' | ' instead of '|' for repeatable 2021-10-18 11:28:40 +02:00
Template.pm Bug 24606: Fix encoding issues on decoded content 2022-11-11 15:38:18 -03:00
Templates.pm Bug 24606: (QA follow-up) borrowernumber => patron_id 2022-11-10 14:39:35 -03:00
Transfer.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Transfers.pm Bug 31183: Add Koha::Item::Transfers->filter_by_current 2022-08-09 08:26:24 -03:00