BigQuery: Convert accented characters to their plain ascii equivalents

后端 未结 4 914
花落未央
花落未央 2020-12-17 04:21

I have the following string:

brasília

And I need to convert to:

brasilia

Withou the ´ accent!

Ho

4条回答
  •  遥遥无期
    2020-12-17 04:52

    You can call REPLACE() or REGEXP_REPLACE(). You can find some regular expressions at Remove accents/diacritics in a string in JavaScript.

    Alternatively, you can use javascript UDF, but I expect it to be slower.

提交回复
热议问题