I'm trying to run upper on a column that contains non-English characters: áéőí
q)t:([] nm: (`as;`$"áb"))
q)t
nm
---
as
áb
q)update upper_nm: upper nm from t
nm upper_nm
------------
as AS
áb áB
I found a workaround using a system call to python but is much slower than the built-in function:
q)upper_py: {`$ system "python -c \"print(\\\"",string[x],"\\\".upper())\""}
q)update upper_nm: upper_py'[nm] from t
nm upper_nm
------------
as AS
áb ÁB
There should be a nicer, faster way to do this.