You are not logged in.
Pages: 1
I'm using TSQLRecord.Validate in a service. Would it be possible to change it to return rawUTF8 instead of string?
Also what's the best way to override the resourcestrings in SynCommons.pas?
Many thanks
Offline
Use StringToUTF8() to get a RawUTF8 content.
See https://github.com/synopse/mORMot/blob/ … oti18n.pas for on-the-fly interception of resourcestrings.
See also LoadResStringTranslate() as defined in SynCommons.pas.
Offline
thought of using StringToUTF8() but was thinking it would be more efficient to do the function on the client with UTF8ToString() instead of the server.
I'll have a look at LoadResStringTranslate().
Thanks
Offline
Thanks, understand it better now and all works. I was doing validation server side as I was using ajax and checking for a unique field.
Offline
Pages: 1