On Thu, 22 Jul 2021, Sven Schreiber wrote:
> For good measure I've added a recode() function in git (just
exposes
> GLib functionality). So you can now do, e.g.,
>
> string s = recode(s, "cp1250", "utf8")
May I object to the function name? In the context of a statistical
package, the name recode() seems to point at a _numerical_ recoding
function, like what we do with replace(). I'd be happier with something
like textrecode(), if not too long.
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------