I have a string with International characters on it, like "Çiñoën Straße"
I need to code a function to change the string to a Roman version as "Cinoen Strabe"
I can follow a mapping approach, for example if 'Ç' is detected, replace it with 'C'
I wonder if there is a best approach, like using COLLATE
1条答案
按热度按时间okxuctiv1#
this is more or less how it turned out
SET @output = REPLACE(@output COLLATE Latin1_General_Bin, 'ß', 'ss')
SET @output = REPLACE(REPLACE(@Output COLLATE Latin1_General_Bin, 'ç', 'c'), 'Ç', 'C')
Here it is the full list of European characters and their equivalent
https://www.fon.hum.uva.nl/praat/manual/Special_symbols.html