SELECT `justfunctions.eu.transliterate_anyascii`("καλημέρα")
/*--Output--
kalimera
*/
CREATE OR REPLACE FUNCTION `your_project_id.your_dataset_id.transliterate_anyascii`(`string` string) RETURNS string
LANGUAGE js AS r'''try {
return utils.anyAscii(string);
} catch (e) {
return string
}
''' OPTIONS ( description = '''Converts Unicode characters in a <string> to their best ASCII representation.''' , library = [ "gs://justfunctions/bigquery-functions/transliteration.js" ] )
JavaScript User Defined Function (JavaScript UDF)
See something wrong? Contact us or report an issue on Github.