<div dir="ltr">Perhaps using inheritance and inherited clause<br>I will test it.<br><br>Thank you.<br><br><div class="gmail_quote">2008/7/25 JoshyFun <span dir="ltr"><<a href="mailto:joshyfun@gmail.com">joshyfun@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello Osvaldo,<br>
<br>
Friday, July 25, 2008, 6:21:21 PM, you wrote:<br>
<br>
OT> Pearhaps the problem is in the way of componet get/send data from<br>
OT> database. Not in lazarus.<br>
OT> FirebirdSQL save data as is receved from the client, it use de charset<br>
OT> and the collate for this.<br>
OT> When i create a field with utf8 charset i see correct in all clients<br>
OT> with support utf8: lazarus (use utf8, ever) and flamerobin (use defined<br>
OT> charset).<br>
OT> The problem is how lazarus send/get data respecting the charset of<br>
OT> component connection.<br>
OT> Dataset.dataconvert? transliterate? more ideia?<br>
<br>
I'm now using the "AfterOpen" of each TSQLQuery which based in the<br>
DEFINE of unicode support, calls a function that hooks the<br>
OnGetText/OnSetText of each ftString field. The hook on these<br>
functions calls UTF8Encode and UTF8Decode.<br>
<br>
In my code this seens to be the more clean way to keep the ISO8859-1<br>
data and UTF8 representation. When upgrade database simple replace the<br>
hook function by a dummy one and "voila" ready.<br>
<br>
If you already uses the OnGetText/OnSetText in your code this solution<br>
will overcomplicate it :(<br>
<br>
--<br>
Best regards,<br>
<font color="#888888"> JoshyFun<br>
</font><div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lazarus.freepascal.org">Lazarus@lazarus.freepascal.org</a><br>
<a href="http://www.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://www.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
</div></div></blockquote></div><br></div>