Sample code for 30+ languages & platforms
PowerBuilder

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 PowerBuilder Downloads

PowerBuilder
integer li_rc
integer li_Success
string s
oleobject loo_Sb

li_Success = 0

s = "Números para Mí (Student Edition, Spanish)"

loo_Sb = create oleobject
li_rc = loo_Sb.ConnectToNewObject("Chilkat.StringBuilder")
if li_rc < 0 then
    destroy loo_Sb
    MessageBox("Error","Connecting to COM object failed")
    return
end if
li_Success = loo_Sb.Append(s)
loo_Sb.RemoveAccents()

Write-Debug loo_Sb.GetAsString()

// Output:
// Numeros para Mi (Student Edition, Spanish)


destroy loo_Sb