utf8vcl-general Mailing List for UTF-8 VCL (Page 7)
Status: Alpha
Brought to you by:
bluelive
You can subscribe to this list here.
2007 |
Jan
|
Feb
|
Mar
(144) |
Apr
(50) |
May
(5) |
Jun
|
Jul
(14) |
Aug
(14) |
Sep
|
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: SourceForge.net <no...@so...> - 2007-03-20 20:17:29
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4217158 By: kryvich Now I test a coexistence of utf8vcl with my Delphi Localizer ( http://kryvich.googlepages.com/ ). I've found out, that the utf8vcl can sometimes raise a non-handled exception "System Error. Code 1113". Try to execute this code to get this exception in the test application: Canvas.TextRect(Rect(100, 100, 130, 130), 100, 100, char($B9)); I know, char($B9) isn't a correct UTF-8 string. But I think the utf8vcl should process such wrong strings in a more intelligent way. ______________________________________________________________________ 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 |
From: SourceForge.net <no...@so...> - 2007-03-20 06:25:11
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4215950 By: kryvich Text DFM --> Wide string --> manually editable text file Binary DFM --> UTF8 string --> compact binary file It is how VCL works. I think, this is a reasonable decision of VCL developers. ______________________________________________________________________ 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 |
From: SourceForge.net <no...@so...> - 2007-03-20 06:20:38
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4215946 By: kryvich Very strange text, really! :) Bart, I believe, you have missed a last letter "i" in the word: ...t<smile>n ______________________________________________________________________ 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 |
From: SourceForge.net <no...@so...> - 2007-03-19 21:37:52
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4215499 By: kryvich Correction: But in a RCData resource, embedded to a EXE file, this string saves in a UTF8 format. As well as in a binary DFM format. ______________________________________________________________________ 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 |
From: SourceForge.net <no...@so...> - 2007-03-19 21:32:32
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4215484 By: bluelive So that would make it a widestring then ? ______________________________________________________________________ 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 |
From: SourceForge.net <no...@so...> - 2007-03-19 21:24:16
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4215472 By: kryvich You can. Open the test form Form1 in IDE, right click it and select "View as Text" in pop-up menu. Then find object Edit1, property Text and set it as Text = 'Edit1 - '#1055#1088#1099#1074#1110#1090#1072#1085#1085#1077'!' Save DFM file and run test application. ______________________________________________________________________ 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 |
From: SourceForge.net <no...@so...> - 2007-03-19 21:21:12
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4215466 By: kryvich It is how a string with international characters looks in IDE when you select "View as Text" for a form in the designer. But in DFM file this string saves in UTF8 format. ______________________________________________________________________ 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 |
From: SourceForge.net <no...@so...> - 2007-03-19 21:15:21
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4215458 By: bluelive I wasn't aware that so many sourceforge projects are idle. We are currently more active then 99.95% of the projects, and we've made the top 100 of active projects :) ______________________________________________________________________ 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 |
From: SourceForge.net <no...@so...> - 2007-03-19 20:52:39
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4215431 By: bluelive It might also be the same problem that the title had a few days back, a window created with the A interface, but i can't find where it would have been doing this. ______________________________________________________________________ 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=671425 |
From: SourceForge.net <no...@so...> - 2007-03-19 20:35:23
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4215409 By: bluelive I don't have a bds here, i don't think i can put anything international into a dfm here atm. ______________________________________________________________________ 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 |
From: SourceForge.net <no...@so...> - 2007-03-19 20:23:22
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4215378 By: bluelive I got some feedback from coworkers that said that the teststring is much to filled with stuff that can exsist in a single codepage, so i extended it with hebrew arabic chinese and a symbol. Anyhelp on building a good testtext is verymuch appreciated. ______________________________________________________________________ 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 |
From: SourceForge.net <no...@so...> - 2007-03-19 19:47:57
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4215320 By: bluelive So your building a string using utf16 here ? ______________________________________________________________________ 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 |
From: SourceForge.net <no...@so...> - 2007-03-19 19:46:10
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4215316 By: bluelive Hmz, we call the W function correctly, it seems to be a problem with using the cyrilics, possibly this W function actually calls the A function again on a lower level ? ______________________________________________________________________ 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=671425 |
From: SourceForge.net <no...@so...> - 2007-03-19 16:08:35
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4214954 By: bluelive I think it is caused by a little experiment in the code that i've added, i'll take a look tonight. ______________________________________________________________________ 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=671425 |
From: SourceForge.net <no...@so...> - 2007-03-19 14:57:44
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4214827 By: kryvich Ahh! Look at the TWriter.WriteMinStr procedure. if LocaleStr <> UTF8Str then ... // write vaUtf8String else ... // write vaString ______________________________________________________________________ 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 |
From: SourceForge.net <no...@so...> - 2007-03-19 14:53:15
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4214811 By: kryvich The line Result := Utf8Encode(ReadWideString) is executed only once during loading the test application. So I assume that Delphi writes to a DFM file a vaUTF8String type string only if it contains non-ASCII characters. Otherwise Delphi writes vaLString. I have Turbo Delphi. ______________________________________________________________________ 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 |
From: SourceForge.net <no...@so...> - 2007-03-19 13:59:11
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4214708 By: bluelive Hmz, i'll take a look again, the line '''Result := ReadWideString''' should allready work because of the widestring <> string conversion hack. but i thing the type in the dfm isn't vaUTF8String but simply vaLString ______________________________________________________________________ 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 |
From: SourceForge.net <no...@so...> - 2007-03-19 13:16:58
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4214625 By: kryvich The forum eats all indentions. :( ______________________________________________________________________ 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 |
From: SourceForge.net <no...@so...> - 2007-03-19 13:16:01
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4214624 By: kryvich Look, I've made a patch for the function TReader. ReadString. Now all works perfectly. UTF8VCLClasses.pas: unit UTF8VCLClasses; interface uses Classes; type TReaderPatch = class(TReader) private procedure HookTReaderReadString; function ReadStringPatch: string; end; procedure HookTReaderReadString; implementation uses RTLConsts, UTF8VCLUtils; type TProc = function: string of object; procedure HookTReaderReadString; begin TReaderPatch(nil).HookTReaderReadString; end; function TReaderPatch.ReadStringPatch: string; var L: Integer; begin if NextValue in [vaWString, vaUTF8String] then Result := Utf8Encode(ReadWideString) else begin L := 0; case ReadValue of vaString: Read(L, SizeOf(Byte)); vaLString: Read(L, SizeOf(Integer)); else raise EReadError.CreateRes(@SInvalidPropertyValue); end; SetLength(Result, L); Read(Pointer(Result)^, L); end; end; procedure TReaderPatch.HookTReaderReadString; var A, B: TProc; begin A := ReadString; B := ReadStringPatch; InjectJumpHook(TMethod(A).Code, TMethod(B).Code); end; initialization HookTReaderReadString; end. ______________________________________________________________________ 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 |
From: SourceForge.net <no...@so...> - 2007-03-19 11:00:35
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4214373 By: kryvich Yes. You obviously should try the test string which I've specified earlier. Put a breakpoint on Result := ReadWideString (Classes.pas, function TReader.ReadString) and you will see. ______________________________________________________________________ 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 |
From: SourceForge.net <no...@so...> - 2007-03-19 08:46:36
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4214208 By: bluelive Hmz, even if you set the compiler codepage ? ______________________________________________________________________ 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 |
From: SourceForge.net <no...@so...> - 2007-03-19 08:21:15
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4214175 By: kryvich It is really a big challenge! :) AFAIK JvRichEdit can utilize the RichEdit 2.0 class. Someone can use a code of this class as a basis. ______________________________________________________________________ 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 |
From: SourceForge.net <no...@so...> - 2007-03-19 08:09:06
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4214162 By: kryvich Sorry the problem still here. And TReader.ReadString still converts a resource string to ANSI. Try to set Edit1.Text in DFM file to Text = 'Edit1 - '#1055#1088#1099#1074#1110#1090#1072#1085#1085#1077'!' and you'll see. ______________________________________________________________________ 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 |
From: SourceForge.net <no...@so...> - 2007-03-19 07:58:43
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4214151 By: kryvich I've just rechecked the issue with my office computer. I've found a problem in settings of code pages in the Windows registry: the key [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage] Now all works OK on this machine too. ______________________________________________________________________ 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 |
From: SourceForge.net <no...@so...> - 2007-03-19 07:57:00
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4214149 By: marquardt It worked before the latest changes. Currently it shows the same text as RichEdit. I suspect the dialog handling changes to cause the problem. ______________________________________________________________________ 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=671425 |