//ERDDAP/com.cohort.util/ScriptString2/makeValidUnicode
makeValidUnicode
[JVM]
open fun makeValidUnicode(s: String, alsoOK: String): String
This makes s valid Unicode by converting invalid characters (e.g., #128) with \uhhhh (literally 2 backslashes, so no info is lost). The invalid characters are often Windows charset characters #127 - 159.
Return
the valid Unicode string.
Parameters
JVM
s |
alsoOK |