Page 1 of 1

Bug in Persian Keyboard

Posted: 14 May 2022 21:39
by amirvf
I am using two languages in windows which are shown here:
language.jpg
language.jpg (41.87 KiB) Viewed 1736 times

When I want to type with "Persian Keyboard", everything works fine in the "Windows" environment, however, there is an issue inside XYplorer, which indeed uses "Arabic Keyboard" which has a different output from "Persian Keyboard". I should mention that "Arabic Keyboard" is not even installed in my windows language settings.

Therefore, each time, I have no option but to edit the filenames from outside XYplorer which is very annoying.

Here is a screenshot which shows the issue when "Persian Keyboard" is activated .

The name of the first file has been written from within XYplorer (which is INCORRECT) and the name of the second file has been written in Windows (which is CORRECT):
arabic vs persian.jpg
arabic vs persian.jpg (100.6 KiB) Viewed 1736 times

Note:
The default font for file names in my setting is "IRANSansX 10.5" which is a fully persian font and includes all relevant unicode characters.
xyplorer font.jpg
xyplorer font.jpg (103.16 KiB) Viewed 1736 times

How could I resolve this issue?

Re: Bug in Persian Keyboard

Posted: 15 May 2022 10:29
by admin
At what point does the wrong thing happen?

Re: Bug in Persian Keyboard

Posted: 15 May 2022 12:44
by amirvf
Anywhere inside XYplorer which needs typing.

Examples are:
- Renaming a file (after pressing F2)
- Typing in the info panel: Tags, Find Files (Name & Location / Tags / Contents)
- Typing in all form fields such as: Edit User Button, Item properties, Category Properties, Run Script, Add Tags, Quick Search, etc

Re: Bug in Persian Keyboard

Posted: 15 May 2022 12:46
by amirvf
And the issue is quite persistent, from the verying beginning, which XYplorer launches.
I have never noticed a moment of correct behavior within XYplorer.

Re: Bug in Persian Keyboard

Posted: 15 May 2022 12:56
by admin
Arabic and Persian use the same code page (Windows-1256). But that should not even matter since the Edit boxes support Unicode. I cannot explain it, nor fix it. :|

Re: Bug in Persian Keyboard

Posted: 16 May 2022 22:06
by amirvf
I just noticed that you have persian language in select language (#731).
Switching to persian in UI results in the same behavior. All menus have incorrect alphabet!

Does the UI use UTF-8 encoding?
I used notpad++ with UTF-8 encoding and it does not have this issue.

Re: Bug in Persian Keyboard

Posted: 16 May 2022 22:31
by amirvf
I believe there is an issue with chararacter encoding within XYplorer.

When I switch to "Persian" language, some parts of texts within XY menu become totally distorted. Such figures only arise when there is an issue with chararacter encoding.

Here is a snapshot from font settings in the configuration. Distorted texts are marked with red rectangles:
encoding.jpg
encoding.jpg (435.92 KiB) Viewed 1663 times

Re: Bug in Persian Keyboard

Posted: 17 May 2022 08:12
by admin
Your Windows system locale page should be set to Persian.
Windows-SetCodePage.png
Windows-SetCodePage.png (16.21 KiB) Viewed 1652 times
XY-VariousInfo-CodePage.png
XY-VariousInfo-CodePage.png (29.27 KiB) Viewed 1652 times

Re: Bug in Persian Keyboard

Posted: 22 May 2022 02:57
by amirvf
It is already set to Persian. It doesn't work.