Skip to main content

//ERDDAP/com.cohort.util/ScriptString2/modifyToBeASCII

modifyToBeASCII

[JVM]
open fun modifyToBeASCII(s: String): String

This converts the string to plain ascii (0..127). Diacritics are stripped off high ASCII characters. Some high ASCII characters are crudely converted to similar characters (the conversion is always character-for-character, so the string length will be unchanged). Other characters become '?'. The result will be the same length as s.

Return

the string converted to plain ascii (0..127).

Parameters

JVM

s