You are not logged in.
Pages: 1
Whole mORMot framework works with RawUTF8 which is an AnsiString containing UTF8 characters. How to deal with string conversion working with standard Delphi components based on string type. I'm getting nervous seeing hundreds of hints concerning string conversion, for example:
button1.Caption := DateTimeMSToString(Now)
W1057 Implicit string cast from 'RawUTF8' to 'string'
What is the best solution to get rid those hints?
Offline
Read https://synopse.info/files/html/Synopse … ml#TITL_32
In short: UTF8ToString() / StringToUTF8() or explicit string() / RawUTF8() transtyping.
Offline
Pages: 1