79811393

Date: 2025-11-06 14:37:26
Score: 2.5
Natty:
Report link

@scott Dettling, You could use replacelist() function in ColdFusion. Here is example based on your sample input provided by you.



<cfscript>
input = "Alertas del Condado: Esto es una prueba. Por favor, ignórelo. Gracias.";
fromChars = "á,é,í,ó,ú,ñ,Á,É,Í,Ó,Ú,Ñ";
toChars   = "a,e,i,o,u,n,A,E,I,O,U,N";
cleaned = ReplaceList(input, fromChars, toChars);
writeOutput(cleaned);
</cfscript>

Note : We can able to resolve this by using Java’s java.text.Normalizer to decompose accented characters and remove the diacritics. But the best way to use replacelist() function in CFML. I hope that help you lot !. Thank you !

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (2): Gracias
  • Whitelisted phrase (-1): hope that help
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @scott
  • Looks like a comment (1):
Posted by: Kannan.P