Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remove French accents
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01212164
Message ID:
01212408
Vues:
16
Raymond,

Check the function below, it works very nicely when converting from Portuguese and Spanish characters.
**************************************** 
FUNCTION RemoveAccents(tcStringInput) 
**************************************** 
LOCAL lcStringFilterIn, lcStringFilterOut, lcStringOutput 
lcStringFilterIn  = "ÁÉÍÓÚáéíóúÀÈÌÒÙàèìòùÂÊÎÔÛâêîôûÄËÏÖÜäëïöüÃÕãõÇçÑñº" 
lcStringFilterOut = "AEIOUaeiouAEIOUaeiouAEIOUaeiouAEIOUaeiouAOaoCcNno" 
lcStringOutput = CHRTRAN(tcStringInput, lcStringFilterIn, lcStringFilterOut) 
RETURN (lcStringOutput) 
ENDFUNC
Hope this helps

Cesar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform