Hello,
I'm using synachar unit to determine if string is valid UTF 8 string, 
I'm using following construct:
ShowMessage(IfThen(s = CharsetConversion(CharsetConversion(s, UTF_8, 
UCS_4), UCS_4, UTF_8), 'yes' ,'no'));

is that correct?

s :=    chr($E2 ) + chr($82 )+ chr($AC); //EURO sign is correctly 
identified as valid
s :=    chr($E2 ); //correctly identified as invalid

I'm having problems with some characters
s :=    chr($F0) + chr($A4)+ chr($AD) + chr($A2); //some chinese, 
correct UTF-8 but identified as not UTF-8

Brona

------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to