Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

source editor cann't input utf8 charactor #430

Open
LukyGuyLucky opened this issue Apr 17, 2023 · 5 comments
Open

source editor cann't input utf8 charactor #430

LukyGuyLucky opened this issue Apr 17, 2023 · 5 comments
Labels

Comments

@LukyGuyLucky
Copy link

LukyGuyLucky commented Apr 17, 2023

The IDE source editor input ascii (common English)character and displays correctly,but when input UTF8/UTF16 characters,say,Japanese/Russian/Chinese characters,lik: "早上好“,”我爱World Cup“,”D语言很优美“,all display incorrectly in a mess.

Checked the latest precompiled binary built (downloaded from this site several years ago ),this issue exists.

At the meanwhile,was wondering the console shows local host 0.0.0.0:8080 other than 127.0.0.1:8080

Snipaste_2023-04-17_15-32-00
23
224

@GrimMaple
Copy link
Collaborator

This might be as simple as font issues. Related: buggins/dlangui#584
dlangui is more than capable of rendering correct characters, but a relevant font must be used. Can you somehow set-up the editor font? I can't remember right now. Will look into it later too

@LukyGuyLucky
Copy link
Author

In my built package,it turned out that disable freetype font using windows system font raises the issue.Enable freetype and choose a proper font(say Arial) works now.

@GrimMaple
Copy link
Collaborator

A person in this issue buggins/dlangui#652 mentioned, that there are issues with WinAPI font loading. However, I can't seem to work out how to enter Japanese characters nonetheless. I'm going to mark this as a bug for now and see if it can be fixed.

@GrimMaple GrimMaple added the bug label Apr 18, 2023
@LukyGuyLucky
Copy link
Author

Just noticed the compiler log windows can't show UTF8(Chinese) charaters neither,that's from MS VC linker I guess.In a console bud build,those charaters display correctly.
225

@GrimMaple
Copy link
Collaborator

Console not being able to display UTF-8 is very logical, Windows always has issues with that. It's most likely encoding settings or whatever. But there's definitely something fishy going on with font loading in dlangui.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants