Files
librenms-librenms/config
Tony Murray 8a883140cb Infer character encoding for ifAlias and sysLocation (#13248)
* Infer character encoding for ifAlias and sysLocation
Tries to convert character encoding for non-UTF-8 encoded strings.
This will only work for snmp strings that are type-hinted, not ones forced to ASCII with -Oa or similar
Only works for your default charset or Windows-1251 or LATIN1.
You can set your character encoding in .env with CHARSET

Please save us all and just use UTF-8

* style fixes

* less Yoda

* ensure return type

* fall back to passed string

* don't convert strings with any unprintable characters (such as line return)

* Update LibreNMS/Util/StringHelpers.php

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>

* Fix CP850

* fix space

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-09-21 08:47:44 -05:00
..
2020-11-21 22:52:58 -06:00
2020-07-08 07:36:51 -05:00
2020-09-21 14:54:51 +02:00
2019-02-14 08:08:38 -06:00
2020-07-09 08:22:50 -05:00
2020-11-03 10:18:31 -06:00
2020-05-23 12:05:18 -05:00
2020-09-21 14:54:51 +02:00
2021-09-19 08:21:31 -05:00
2019-02-14 08:08:38 -06:00
2020-09-21 14:54:51 +02:00
2020-07-09 08:22:50 -05:00