Xbase++
Xbase++
Remove Accent Marks from Chars in String
Removes the accent marks from Latin and Central European chars in a string.Note: The RemoveAccents method was added in Chilkat v9.5.0.91. This example requires Chilkat v9.5.0.91 or greater.
Chilkat Xbase++ Downloads
LOCAL nSuccess
LOCAL s
LOCAL oSb
nSuccess := 0
s := "Números para Mí (Student Edition, Spanish)"
oSb := CreateObject("Chilkat.StringBuilder")
nSuccess := oSb:Append(s)
oSb:RemoveAccents()
? oSb:GetAsString()
// Output:
// Numeros para Mi (Student Edition, Spanish)
oSb:destroy()