The ASCII chart shows all characters with codes from 0 to 255 for the selected font. It does not support UNICODE. I have no idea how to make it display Hebrew characters. I always assumed that it can be done by selecting a font that contains them. Could you provide me with a code sample that shows the Hebrew characters on e.g. a label?
Status: pending Group: Need_More_Info Created: Sat Jan 04, 2025 10:17 AM UTC by limelect Last Updated: Sat Jan 04, 2025 10:17 AM UTC Owner: Thomas Mueller
The ASCII chart shows all characters with codes from 0 to 255 for the selected font. It does not support UNICODE. I have no idea how to make it display Hebrew characters. I always assumed that it can be done by selecting a font that contains them. Could you provide me with a code sample that shows the Hebrew characters on e.g. a label?
Status: pending Group: Need_More_Info Created: Sat Jan 04, 2025 10:17 AM UTC by limelect Last Updated: Sat Jan 04, 2025 10:17 AM UTC Owner: Thomas Mueller
The dfm file seems to contain only captions with English text. The screenshot results in an error message. Also, this does not help me. I need some Delphi code.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Any Code will not help as I do not understand what code you need?
You can always take the DFM and use it on creating your need
I am sending you the DFM that hold the text
object Label1: TLabel
Left = 31
Top = 121
Width = 36
Height = 16
Caption = #1513#1500#1510#1492 <<< hebrew name
object Edit1: TEdit
Left = 28
Top = 67
Width = 443
Height = 24
TabOrder = 0
Text = 'Edit '#1513#1500#1502#1492' my name' <<< Mix hebrew and
english
end
On 05/01/2025 11:56, Thomas Mueller wrote:
The dfm file seems to contain only captions with English text. The screenshot results in an error message. Also, this does not help me. I need some Delphi code.
Status: pending Group: Need_More_Info Created: Sat Jan 04, 2025 10:17 AM UTC by limelect Last Updated: Sat Jan 04, 2025 10:48 AM UTC Owner: Thomas Mueller
The ASCII chart shows all characters with codes from 0 to 255 for the selected font. It does not support UNICODE. I have no idea how to make it display Hebrew characters. I always assumed that it can be done by selecting a font that contains them. Could you provide me with a code sample that shows the Hebrew characters on e.g. a label?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In order to display Hebrew characters we need to use the code page 862.
A one character RawByteString containing a Hewbrew character can be set to that code page by calling: System.SetCodePage
So this code should work:
varr:RawByteString;s:string;//UnicodestringbeginSetLength(r,1);Byte(r[1]):=154;//charactercodefor'ת'(HewbrewletterTav)SetCodePage(r,862,False);s:=r;//sshouldnowcontainthecharacter#1513 which is Unicode for 'ת'end;
Setting the code page before assigning the character did not work for me.
No idea how to fix this for older, non Unicode aware versions of Delphi. Maybe just not fix it at all?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
And since this is problem not only exists for Hebrew characters but also for Kyrillic or Arabic, the ASCII chart (which is not an ASCII chart any more then) should contain a list for selecting them.
To get this list there is the WinAPI function EnumSystemCodePages.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am sending you my name in picture and DFM
done with D10.2.3
On second dfm it is from D7 look at edit
The picture shows my name in Hebrew
On 04/01/2025 12:48, Thomas Mueller wrote:
להתראות
0505-444457 *שלמה אבייצחק *
*לים אלקטרוניקה
*
*הגנה 60 הרצליה
מיקוד 4635621
limelect@gmail.com
http://www.limelect.com http://www.limelect.com/
Related
Bugs:
#403On D7 mistake with spelling on first mail
On 04/01/2025 12:48, Thomas Mueller wrote:
להתראות
0505-444457 *שלמה אבייצחק *
*לים אלקטרוניקה
*
*הגנה 60 הרצליה
מיקוד 4635621
limelect@gmail.com
http://www.limelect.com http://www.limelect.com/
Related
Bugs:
#403The dfm file seems to contain only captions with English text. The screenshot results in an error message. Also, this does not help me. I need some Delphi code.
Any Code will not help as I do not understand what code you need?
You can always take the DFM and use it on creating your need
I am sending you the DFM that hold the text
object Label1: TLabel
Left = 31
Top = 121
Width = 36
Height = 16
Caption = #1513#1500#1510#1492 <<< hebrew name
object Edit1: TEdit
Left = 28
Top = 67
Width = 443
Height = 24
TabOrder = 0
Text = 'Edit '#1513#1500#1502#1492' my name' <<< Mix hebrew and
english
end
On 05/01/2025 11:56, Thomas Mueller wrote:
Yours
Shlomo Abuisak 0505-444457
Lim Electronics
Hagana street 60
Herzelia
Zip 4635621
Israel
limelect@gmail.com
http://www.limelect.com http://www.limelect.com/
Related
Bugs:
#403The ASCII chart shows all characters with codes from 0 to 255 for the selected font. It does not support UNICODE. I have no idea how to make it display Hebrew characters. I always assumed that it can be done by selecting a font that contains them. Could you provide me with a code sample that shows the Hebrew characters on e.g. a label?
Some findings:
So this code should work:
Setting the code page before assigning the character did not work for me.
No idea how to fix this for older, non Unicode aware versions of Delphi. Maybe just not fix it at all?
Apparently there are multiple Hebrew code pages in Windows. There is a list of code pages under Windows at https://learn.microsoft.com/en-us/windows/win32/intl/code-page-identifiers
And since this is problem not only exists for Hebrew characters but also for Kyrillic or Arabic, the ASCII chart (which is not an ASCII chart any more then) should contain a list for selecting them.
To get this list there is the WinAPI function EnumSystemCodePages.
implemented in revision #4424
I have send a program source on your private mail wirh ascii chart
showing Heberw
I hopy you got it
I got it.
Did you check the latest sources? Does Hebrew work now?