Here it shows correctly, does not depend on UTF8 or ANSI:Xusinboy Bekchanov wrote: ↑Oct 07, 2022 5:41Concerning the console all Windows is identical. For example, mine doesn't show Unicode characters either.
VisualFBEditor - IDE for FreeBasic
-
- Posts: 783
- Joined: Jul 26, 2018 18:28
Re: VisualFBEditor - IDE for FreeBasic
-
- Posts: 783
- Joined: Jul 26, 2018 18:28
Re: VisualFBEditor - IDE for FreeBasic
#define UNICODE works too:
#define UNICODE does not depend on the Print statement, only affects WinAPI (Uses "W" functions instead of "A" functions).
#define UNICODE does not depend on the Print statement, only affects WinAPI (Uses "W" functions instead of "A" functions).
Re: VisualFBEditor - IDE for FreeBasic
Yeah,this is what looks weird.Before these tests,the same situation as you mentioned above so I call chcp 65001 before run app in c/c++ when need.Recently in FB time to time I found it display asian characters properly,while I just used a plain ansi source code to compile which does not convince me to believe my win10 terminal can handle unicode properly without any extra effort.Xusinboy Bekchanov wrote: ↑Oct 07, 2022 5:41Concerning the console all Windows is identical. For example, mine doesn't show Unicode characters either.
Given below tiny test program,compiled by Visual FB Editor,source plain text mode,no any #defines,Win10 console displayed perfect.Changing to any of the UTF modes,it desn't.
Code: Select all
Print !"你好\r\n欢迎\r\n来到\r\nFB世界"
Sleep
Re: VisualFBEditor - IDE for FreeBasic
It is overlapped when UTF been chosen which I have mentioned in previous thread.When using plain ansi,it is not overlapped which I mentioned "displayed perfect".Xusinboy Bekchanov wrote: ↑Oct 07, 2022 5:59Here it shows correctly, does not depend on UTF8 or ANSI:Xusinboy Bekchanov wrote: ↑Oct 07, 2022 5:41Concerning the console all Windows is identical. For example, mine doesn't show Unicode characters either.
Re: VisualFBEditor - IDE for FreeBasic
Hi Peter,It is overlapped when UTF been chosen which I have mentioned in previous thread.When using plain ansi,it is not overlapped which I mentioned "displayed perfect".
you can try this:
Code: Select all
Shell "chcp 936"
?"Test 1 主要信息", "标题"
Dim a As String = "主要信息"
Dim b As String = "标题"
?"Test 2 String: "; a, b
Dim c As WString Ptr = @"主要信息"
Dim d As WString Ptr = @"标题"
?"Test 3 WString: "; *c, *d
Shell !"echo Test 4: 主要信息\t标题"
Sleep
Re: VisualFBEditor - IDE for FreeBasic
Anyway there is a good function "Debug.print" which could print the information in output windows in VisualFBEditor.
Re: VisualFBEditor - IDE for FreeBasic
The function "suggesstion" is good but works with snip code is much bettter. And chatGPT?
-
- Posts: 783
- Joined: Jul 26, 2018 18:28
Re: VisualFBEditor - IDE for FreeBasic
I meaning AI like ChatGPT is the best way. But it is difficult for a IDE. The user could be make code with OpenAI freely.
-
- Posts: 783
- Joined: Jul 26, 2018 18:28
Re: VisualFBEditor - IDE for FreeBasic
can you add the function to IDE that the IDE could be compile C projects by GCC?
-
- Posts: 783
- Joined: Jul 26, 2018 18:28
Re: VisualFBEditor - IDE for FreeBasic
Maybe we could add a C source code file to the project and compile it as lib file ".o" file first. The .bi file and .h is necessary. Anyway maybe it is a bad idear.
Re: VisualFBEditor - IDE for FreeBasic
Well nice work Xusinboy
I just download binary release...and i cans say on first look
looking better than PosedonFB
now is time to test how work !
I just download binary release...and i cans say on first look
looking better than PosedonFB
now is time to test how work !
-
- Posts: 783
- Joined: Jul 26, 2018 18:28