Functions such as POS() and COPY(), return strange result when used with
utf8 text.

Forr example, if your try
pos( 'κ',
'άέύίόήώϊϋΐΰαβγδεζηθικλμνξοπρσςτυφχψωΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣςΤΥΦΧΨΩΆΈΎΊΌΉΏΪΫ-' ) you 
will get 1, which is incorrect.

I know this has to do with utf encoding (2 or more bytes per character).

Any ideas?

Panagiotis

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to