B4J Question Arabic font from data using SQLite did not display correctly

Discussion in 'B4J Questions' started by ctnm, Feb 3, 2015.

  1. ctnm

    ctnm New Member Licensed User

    Hi,

    I would like to ask a question.

    I have a sqlite database that consist of multifont data. One of it is Arabic font. I have designed an interface to display the data into Table View. The data is displayed but for the Arabic data the are error.

    The Arabic data is displayed as a separate single character not as word. Did B4J need a setting to make the Arabic data display correctly?

    Tq.
     
  2. giga

    giga Well-Known Member Licensed User

  3. Troberg

    Troberg Well-Known Member Licensed User

    The first thing to try is to display the text without getting it from the database, just setting it in the code instead.

    That will neatly tell you if the problem is in SQLite or in the display.
     
  4. ctnm

    ctnm New Member Licensed User

    Previously, I have been done a program using B4A and there is no problem calling the database.
    And I'm doing similar programming using B4J but this problem occur.

    Troberg: I'm sorry but could you explain what do you mean by 'just setting it in the code instead.'.
    If possible could you give an example.
     
  5. Troberg

    Troberg Well-Known Member Licensed User

    Instead of storing the text in the database, then retrieving it to show it, just do a:

    textbox.text="My arabic text"

    That way, you'll know if the database somehow mangles it, or if it's the display of the text that's the problem. A very telling test.
     
  6. ctnm

    ctnm New Member Licensed User

    I just realize...when i try to enter or input Arabic text into a textbox, the Arabic font also become separate character.
    I just wonder is B4J need font setting?
     
  7. Erel

    Erel Administrator Staff Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice