[yast-devel] Detecting and removing invalid UTF-8 characters
Hi all, this is JFYI, some time ago I fixed a bug where Yast received an invalid UTF-8 sequence in a string from outside (bnc#876459). You can read and write such a string without problems, but if you want to process it by some Ruby methods it will likely throw an exception. For detecting invalid encoding use String#valid_encoding?, for removing String#encode! (see https://github.com/yast/yast-yast2/pull/256/files for details). So if you need to handle such situation in your code then you should know where to look... -- Ladislav Slezák Appliance department / YaST Developer Lihovarská 1060/12 190 00 Prague 9 / Czech Republic tel: +420 284 028 960 lslezak@suse.com SUSE -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
participants (1)
-
Ladislav Slezak