Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Is this ASCII, ANSI, UNICODE or something else?

  1. #11
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,782
    Rep Power
    10

    Re: Is this ASCII, ANSI, UNICODE or something else?

    Martin,

    I'm sorry to ask you to test so many times but this problem is new to me.
    Here in my box all seems working fine but in my computer I was using a truetype font for console output: LucidaConsole.

    Can you be so kind to run the following script.
    [code=thinbasic]
    uses "console"

    printl "Starting code page...........: ", console_getoutputcp
    printl "Testing string with this CP..: ", "אטילעש"
    printl string$(60, "-")
    printl "Changing code page to 1252...: ", console_setoutputcp(1252)
    printl "New code page................: ", console_getoutputcp
    printl "Testing string with this CP..: ", "אטילעש"
    printl string$(60, "-")
    printl "<Press any key to finish>"

    waitkey
    [/code]

    When it will be on screen waiting for you to press a key, than change console window properties changing font from raster to some true type like Lucida Console.
    Done that, can you please confirm if you still see incorrect text or not?

    Thanks
    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

  2. #12
    Member
    Join Date
    Mar 2009
    Location
    Netherlands
    Age
    52
    Posts
    248
    Rep Power
    40

    Re: Is this ASCII, ANSI, UNICODE or something else?

    Good morning Eros,

    This works! I can see the correct text now

    Starting code page...........: 850
    Testing string with this CP..: אטילעש
    ------------------------------------------------------------
    Changing code page to 1252...: 1
    New code page................: 1252
    Testing string with this CP..: אטילעש
    ------------------------------------------------------------
    <Press any key to finish>
    Also writing the string "אטילעש" to a textfile with FILE_LINEPRINT works fine now!

    Martin

  3. #13
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,782
    Rep Power
    10

    Re: Is this ASCII, ANSI, UNICODE or something else?

    Thank you very much for testing

    Now I need to better understand what's going on under the curtains
    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

Page 2 of 2 FirstFirst 12

Similar Threads

  1. HELP FILE : Unicode information swapped
    By Michael Clease in forum Fixed or cleared errors in help material
    Replies: 1
    Last Post: 09-03-2011, 12:19

Members who have read this thread: 1

Posting Permissions

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