Hi Albert,
UTF-8 conversion for accented characters results in strings with between two and six characters for every string. If you would only take the first character of the result, you would see a problem with the decoding of the string. Anyway, why are you converting the string character by character? It's much faster and easier to just pass the entire string to STRCONV(). Any character that can be written in a single character (anything below 128 when using code page 1252) will remain unchanged. All other characters are converted to their corresponding UTF-8 encoded forms.
--
Christof