Results 1 to 4 of 4

Thread: Can't type my native language in ThinAir

  1. #1
    Member
    Join Date
    Aug 2015
    Location
    Keralam, India
    Posts
    121
    Rep Power
    21

    Can't type my native language in ThinAir

    Hi all,
    I am using ThinBasic Version - 1.10.4.0
    My ThinAir version - 1.10.4.0
    Windows 8 x86

    I can't change the encoding of the script file created by ThinAir, since, there is no option for it. But if open the script file in Notepad++ and change the encoding from ANSI to UTF - 8 BOM, then the script is showing my native language letters correctly. No problem. And i can run the script very well. MsgBoxW is working great. But Only problem is if i type something in my native language, thinAir shows it as question marks. Any help ?

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10
    I still have to wok a lot on this.

    Can you please let me know this:
    1. if you create a simple thinBasic script file using Notepad++ are you able to see it correctly if you open it back in thinAir?
    2. if you copy/paste some text from a text showing your language, does it shows correctly?


    Thanks a lot
    Eros

    Example
    thinAir_Hello_UTF8.PNG
    Last edited by ErosOlmi; 27-06-2018 at 06:36.
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  3. #3
    Member
    Join Date
    Aug 2015
    Location
    Keralam, India
    Posts
    121
    Rep Power
    21
    Hi Eros,
    Thanks for your reply. I have tested as you said.
    Case 1 - I've just create a *.tbasic file in notepad++ and edit it in thinAir.
    Result - I can read the text clearly in thinAir, but only MsgBoxW can show it. I think GUI components in thinBasic are not supporting unicode. They may be using CreateWindowEx instead of CreateWindowExW.

    Case 2 - I have copy paste text from notepad++ to thinAir.
    Result - Same as the above result.

    Sidenote - Scintilla's internal encoding is UTF-8 by default. Jacob Slusser said it in his GitHub page. But thinAir only creates ANSI files. I think that is the problem.

    PS - If thinBasic's native GUI commands are not supporting unicode, then i would like to create my own gui with CreateWindowExW function. All i need an example of how to deal with RegisterClassExW and CreateWindowExW function in thinBasic. I hope you will provide an example when you get enough free time. Thanks in advance.
    Last edited by kcvinu; 27-06-2018 at 22:10.

  4. #4
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10
    Thanks for testing kcvinu.

    I will have a look at default encoding when creating a new file. This seems the problem.

    Yes, UI module is still ansi only. I will work on that but will be a long trip
    Will start with simple controls and see if on the right path.

    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

Similar Threads

  1. Type ... As ... ?
    By ReneMiner in forum Suggestions/Ideas discussions
    Replies: 0
    Last Post: 09-04-2015, 10:53
  2. new programming language from Wolfram
    By kryton9 in forum Development
    Replies: 4
    Last Post: 21-11-2013, 06:21
  3. thinBasic interface under CGG C/C++ language
    By RobertoBianchi in forum Module SDK (GCC C /C++)
    Replies: 8
    Last Post: 29-04-2009, 14:44
  4. O2 native functions
    By ErosOlmi in forum O2h Compiler
    Replies: 1
    Last Post: 19-03-2009, 13:51
  5. Which language?
    By RobertoBianchi in forum Statistics Module
    Replies: 3
    Last Post: 11-09-2006, 18:55

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •