Jump to content

limelect

Members
  • Content Count

    87
  • Joined

  • Last visited

Community Reputation

13 Good

About limelect

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. limelect

    Hebrew in mail

    In my investigation ,whats going on, i wrote an application with Android Studio. I loaded my text file and the result are the same as with Delphi. So one cannot blame Delphi. That is the good news the bad is the gibberish.
  2. limelect

    Hebrew in mail

    @Lars FosdalThis is what i get from the above demo when i insert HEBREW text first line of file second line of file second line שלמה ×בייצחק of file The attached is OK And what it suppose to be lines.Add('first line of file'); lines.Add('second line of file'); lines.Add('second line שלמה אבייצחק of file'); ^^^^ Hebrew
  3. limelect

    Hebrew in mail

    @Lars Fosdal In my opinion some thing is not correct the way i am sending the attach and it has nothing to do with utf-8. I even used this pas file. same result https://github.com/roywoll/wwEmailWithAttachment_fmx Some thing very basic wrong.
  4. limelect

    Hebrew in mail

    @Lars Fosdal HTML yes. '<meta charset="utf-8">' My comments "BE AWARE THAT LOADING THE SAME FILES WITH GMAIL BOTH FILES (text and html) ARE SHOWN OK." I am using on the SAME text file once GMAIL and once GMAIL FROM MY application !!!! That is what bugs me. GMAIL shows the attached text file. it is crazy. since it is the same file.
  5. limelect

    Hebrew in mail

    @Lars Fosdal where in the source there is a place for UTF-8? Be aware that i am using the SAME GMAIL phone application. Once from my application and once stand alone application.
  6. limelect

    Hebrew in mail

    This my mail attached Delphi software. procedure TForm4.CreateEmail(const Recipient, Subject, Content, Attachment: string); var JRecipient: TJavaObjectArray<JString>; Intent: JIntent; Uri: Jnet_Uri; AttachmentFile: JFile; begin JRecipient := TJavaObjectArray<JString>.Create(1); JRecipient.Items[0] := StringToJString(Recipient); Intent := TJIntent.Create; Intent.setAction(TJIntent.JavaClass.ACTION_SEND); Intent.setFlags(TJIntent.JavaClass.FLAG_ACTIVITY_NEW_TASK); Intent.putExtra(TJIntent.JavaClass.EXTRA_EMAIL, JRecipient); Intent.putExtra(TJIntent.JavaClass.EXTRA_SUBJECT, StringToJString(Subject)); Intent.putExtra(TJIntent.JavaClass.EXTRA_TEXT, StringToJString(Content)); Intent.setType(StringToJString('message/rfc822')); if Attachment <> '' then begin AttachmentFile := TJFile.JavaClass.init(StringToJString(Attachment)); Uri := TJnet_Uri.JavaClass.fromFile(AttachmentFile); Intent.putExtra(TJIntent.JavaClass.EXTRA_STREAM, TJParcelable.Wrap((Uri as ILocalObject).GetObjectID)); end; Intent.setType(StringToJString('vnd.android.cursor.dir/email')); SharedActivity.startActivity(Intent); end; Hebrew text 1. Using NORMAL Gamil phone application on attached Hebrew text file. <<<< NO problem 2. Using my Attached function and Gmail application. <<<< Problem The problem when sending text file with Gmail one can see the text and the attachment with no problem. !!!!!!! When sending SAME text file with Delphi software the attachment is OK but the Hebrew text shown is gibberish. IF i attach HTML file same problem HTML file OK but it is shown in the main mail with gibberish for Hebrew. BE AWARE THAT LOADING THE SAME FILES WITH GMAIL BOTH FILES (text and html) ARE SHOWN OK. P.S the mail sent is open in windows. I thing it is NOT a problem of Unicode. Using galaxy s6 phone.
  7. limelect

    Hebrew font in Web Browser

    The answer was amazingly simple add <meta charset="utf-8">
  8. limelect

    Hebrew font in Web Browser

    @stijnsandersAlthough you are right but this problem is a not realy a code but a fundamental since on S2 it dose not work but on S6 it dose. I also checked the code on "Kompozer " which shown as good code. As i said there is some thing that i miss. I recall there should be some line for Microsoft IEXPLORER ? I will keep investigating.
  9. limelect

    Hebrew font in Web Browser

    Using Delphi 10.2.3 ,Web Browser and Hebrew. I have 2 devices Samsung s6 and s2. On S6 no problem. I am generating an HTML. Hebrew text is gibberish on Samsong S2. Tried: 1. <meta content="text/html; charset=ISO-8859-1 and 8 2. TStringStream.Create(TEXT, TEncoding.Unicode); 3. '<big style="font-family: Courier;">' + TEXT (tried a few fonts) Going into a Hebrew site with Web Browser NO PROBLEM ! on s2. Thanks for your help
  10. limelect

    Tlabeledit for fmx

    @Rollo62 It is VCL thanks The component Tlabeledit has some features like label placing that you have to develop and not just include one component into the other. This component is in the Delphi VCL IDE. now a days.
  11. limelect

    Tlabeledit for fmx

    In VCL there is a components Tlabeledit I am looking for a SOURCE for almost the same in FMX. Dose any one has a source ?
  12. limelect

    Right To Left Components

    @Alexander Sviridenkov Then is this guy wrong ? https://serge-girard.developpez.com/tutoriels/Delphi/Livebindings/Grilles/#LVII-C-1
  13. limelect

    Right To Left Components

    @Alexander SviridenkovI do not have Arabic on my keyboard And i do not know the Alpha. How ever in Hebrew i can mix with English with no problem Have a look at the top right corner on the memo I have abcdeשלמהfgh "שלמה" is my name in Hebrew The mix is OK!!!
  14. limelect

    Right To Left Components

    @Alexander SviridenkovI cannot comment on what you wrote since Arabic is not my native lang. But in my case i used the source i shown before and it works even for mixing Hebrew and English. Can you elaborate on the problem in your case showing very simple text here. I using memo and 10.2.3
  15. limelect

    Right To Left Components

    Further investigating it seem that my last statement (not real BIDI) mite be wrong since if Char > 3000 then if ((Char = 3633) or ((Char >= 3635) and (Char <= 3642)) or ((Char >= 3655) and (Char <= 3662))) then begin if LastThaiChar = 0 then LastThaiChar := 3585; // DoLogInfo(format('Detected new advance from %d + %d',[ FLastThaiChar,char])); // Advance := FPaint.measureText(StringToJString(System.Char.ConvertFromUtf32(3585)+System.Char.ConvertFromUtf32(Char))); if Char = 3635 then // ׂ Advance := FPaint.measureText (StringToJString(System.Char.ConvertFromUtf32(LastThaiChar) + System.Char.ConvertFromUtf32(Char))) - FPaint.measureText (StringToJString(System.Char.ConvertFromUtf32(LastThaiChar))) else Advance := 0; end; if Char >= 3585 then if Char <= 3630 then LastThaiChar := Char; since above section has nothing to do with MY !!! Hebrew fonts. is it useless ???? i do not know.
×