And3mD wrote:
> How to compare utf8 strings
> 
> For example I have the sign "/" encoded as #47 and #192#175:
> 

Those two are not the same character. Below I copied the "/" character
Unicode information and other Unicode variants of that character.
#192#175 does not seem to be any of those - I actually don't know what
#192#175 is.

But to answer your question, you would probably have to normalize the
strings and then do a Unicode compare. As far as I know this is not
available in FPC.

You can download the utf8tools package which has many Unicode functions
which will help you with what you need. See the following URL.

  http://wiki.lazarus.freepascal.org/Theodp


-----------------------------------------------
U+002F SOLIDUS

General Character Properties

In Unicode since: 1.1
Unicode category: Punctuation, Other

Various Useful Representations

UTF-8: 0x2F
UTF-16: 0x002F

C octal escaped UTF-8: \057
XML decimal entity: /

Annotations and Cross References

Alias names:
 • slash, virgule

See also:
 • U+01C0 LATIN LETTER DENTAL CLICK
 • U+0338 COMBINING LONG SOLIDUS OVERLAY
 • U+2044 FRACTION SLASH
 • U+2215 DIVISION SLASH
-----------------------------------------------



Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/


--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to