SELECT `justfunctions.eu.remove_accents`("¿Dóndé Éstá Mí Ágúá?")
/*--Output--
¿Donde Esta Mi Agua?
*/
CREATE OR REPLACE FUNCTION `your_project_id.your_dataset_id.remove_accents`(`string` string)
RETURNS string AS (regexp_replace(normalize(string, nfd), r"\pm", ''))
OPTIONS ( description = '''Removes accents from a <string>.''')
SQL User Defined Function (SQL UDF)
See something wrong? Contact us or report an issue on Github.