Git Product home page Git Product logo

Comments (14)

PaulSquires avatar PaulSquires commented on August 24, 2024

By default, new files are opened using "ANSI" mode. You will need to switch the file to either "UTF-8 (BOM)" or "UTF-16 (BOM". You do that by clicking on the area in the status bar (located in the bottom right of the editor) and then select the file format.

from winfbe.

ox000008 avatar ox000008 commented on August 24, 2024

from winfbe.

PaulSquires avatar PaulSquires commented on August 24, 2024

Hi, did you intend to post a screenshot or a log output? All I see in your message is the result is "Quick run."
Also, are you using version 3.0.8 and the WinFBE_Suite that includes the FB compiler?

from winfbe.

ox000008 avatar ox000008 commented on August 24, 2024

from winfbe.

PaulSquires avatar PaulSquires commented on August 24, 2024

Sorry. I can not .
https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/attaching-files

Maybe you could post here a small snippet of your Chinese code and I will try to run it on my machine to see what error messages are generated.

from winfbe.

ox000008 avatar ox000008 commented on August 24, 2024

from winfbe.

ox000008 avatar ox000008 commented on August 24, 2024

Here are the snapshots. Previously I have replied on the email, so the attached pictures was missing.
Quick Run
Quick Run

Compile and Run
Compile and Run

I have an idea that Can WinFBE have the function of "Open Declaration" like in the "Eclipse IDE"
Open Declaration

from winfbe.

PaulSquires avatar PaulSquires commented on August 24, 2024

Hi, thank you for the additional details. I have found an error in the "Quick Run" code that would cause display errors. Because I do not have a Chinese Windows version, I used the following source code to test:

I have also uploaded new EXE's for you to test. Simply replace your existing WinFBE EXE's with the ones in the zip archive.
https://www.planetsquires.com/files/chinese_quickrun_test.zip
Please let me know if the problem is fixed.

#include "Afx/AfxWin.inc"

' Comment the following line to enable/disable the
' Chinese code page for console output. The Print
' statement to the console window will look differently
' depending on whether the correct code page is set.
SetConsoleOutputCP(936)

' Using WinFBX's dynamic CWSTR class
dim as CWSTR text1
text1 = "吉伊杰杰勒 吉勒吾 诶艾伊 儿勒屁"
print text1

' Using FreeBasic's built in wstring
dim text2 as wstring * 256
text2 = "吉伊杰杰勒 吉勒吾 诶艾伊 儿勒屁"
print text2

' These calls to the Windows messagebox function should
' correctly display the Chinese text regardless of what
' console code page is set.
AfxMsg( text1 )
AfxMsg( text2 )

from winfbe.

ox000008 avatar ox000008 commented on August 24, 2024

Hi Paul,

There is a new issue now. When I run the compiled "hello.exe", there is no output window display, but the process is running.
image

from winfbe.

PaulSquires avatar PaulSquires commented on August 24, 2024

From your screenshot it looks like you compiled the EXE for "Win64 GUI (Release)".
You should have compiled it for "Console" rather than "GUI".
Make the change and see if you continue to have a zombie process.

from winfbe.

ox000008 avatar ox000008 commented on August 24, 2024

yes, I make that mistake,
Now I run the hello.exe and the Chinese characters have overlaps.
image

from winfbe.

ox000008 avatar ox000008 commented on August 24, 2024

And the Quick Run issue has been fixed.

from winfbe.

PaulSquires avatar PaulSquires commented on August 24, 2024

Hi, that is most likely due to the font that the console uses rather than anything related to WinFBE. Try changing to a different default font for your console and see if that fixes the display issue.

Thanks for reporting back that the Quick Run issue is fixed! That's great news.

from winfbe.

ox000008 avatar ox000008 commented on August 24, 2024

Hi Paul,

I did not find how to change the font or other configuration to fix the overlaps. Instead I can add a space between each character to avoid that issue. Thanks for help.

from winfbe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.