[utf8vcl-general] [utf8vcl - General] Loading from DFM resource
Status: Alpha
Brought to you by:
bluelive
From: SourceForge.net <no...@so...> - 2007-03-17 19:34:15
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4212498 By: kryvich Another issue. I've added some Russian letters to Edit and Memo boxes (properties Edit1.Text and Memo1.Lines). Delphi have saved these properties in a UTF-8 format to the DFM-file. But when I start the program these Russian letters just disappear! Look at screenshots (design-time & run-time): http://img231.imageshack.us/my.php?image=screen1lp7.gif http://img182.imageshack.us/my.php?image=screen2ow3.gif I've located a problem in function TReader.ReadString. When NextValue = vaUTF8String, this function converts a UTF-8 string from a DFM-resource to an ASNI-string (a local Windows codepage, CP1251 Cyrillic in my case). I think you should somehow override this function and prevent this erroneous convertation of an original UTF-8 string into ANSI format. Then OutLParam := LPARAM(ConvertToUTF8(PWideChar(InLParam))); in function MessageU2WBefore will work correctly. ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=671785 |