Bug in Persian Keyboard

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
amirvf
Posts: 133
Joined: 18 Oct 2020 00:46

Bug in Persian Keyboard

Post by amirvf »

I am using two languages in windows which are shown here:
language.jpg
language.jpg (41.87 KiB) Viewed 2541 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 2541 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 2541 times

How could I resolve this issue?

admin
Site Admin
Posts: 65561
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Bug in Persian Keyboard

Post by admin »

At what point does the wrong thing happen?

amirvf
Posts: 133
Joined: 18 Oct 2020 00:46

Re: Bug in Persian Keyboard

Post 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

amirvf
Posts: 133
Joined: 18 Oct 2020 00:46

Re: Bug in Persian Keyboard

Post 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.

admin
Site Admin
Posts: 65561
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Bug in Persian Keyboard

Post 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. :|

amirvf
Posts: 133
Joined: 18 Oct 2020 00:46

Re: Bug in Persian Keyboard

Post 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.

amirvf
Posts: 133
Joined: 18 Oct 2020 00:46

Re: Bug in Persian Keyboard

Post 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 2468 times

admin
Site Admin
Posts: 65561
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Bug in Persian Keyboard

Post by admin »

Your Windows system locale page should be set to Persian.
Windows-SetCodePage.png
Windows-SetCodePage.png (16.21 KiB) Viewed 2457 times
XY-VariousInfo-CodePage.png
XY-VariousInfo-CodePage.png (29.27 KiB) Viewed 2457 times

amirvf
Posts: 133
Joined: 18 Oct 2020 00:46

Re: Bug in Persian Keyboard

Post by amirvf »

It is already set to Persian. It doesn't work.

Post Reply