Unicode in file names

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
JohnM
Posts: 247
Joined: 08 Jun 2006 11:59
Location: Tasmania, Australia

Unicode in file names

Post by JohnM »

Hi All,

Does anyone know of which circumstances XY will shorten a file name in the FV and replace the trailing section with an elipsis?

I ask because I have a file name which contains what I think is unicode character and the name has been shortened. Renaming the file to remove the unicode character causes XY to display the full name. The status bar always displays the full name.
Can anyone repro this?

Cheers
John
Attachments
Before.PNG
Before.PNG (8.71 KiB) Viewed 2656 times
After.PNG
After.PNG (9.31 KiB) Viewed 2656 times
Windows 8.1 x64
XYplorer 22.90.0105 beta

binocular222
Posts: 1416
Joined: 04 Nov 2008 05:35
Location: Hanoi, Vietnam

Re: Unicode in file names

Post by binocular222 »

Can you post the full name (with Unicode) here?
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

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

Re: Unicode in file names

Post by admin »

Please hold CTRL, then right-click the filename and select "Show Character Table". Post the results here.

JohnM
Posts: 247
Joined: 08 Jun 2006 11:59
Location: Tasmania, Australia

Re: Unicode in file names

Post by JohnM »

Here is a shot of the character table.

@binocular222 the full name is in the shot.
Attachments
Character table.PNG
Character table.PNG (12.69 KiB) Viewed 2613 times
Windows 8.1 x64
XYplorer 22.90.0105 beta

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Unicode in file names

Post by highend »

The first "char" contains a linebreak. That's probably the reason for your problem.
One of my scripts helped you out? Please donate via Paypal

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

Re: Unicode in file names

Post by admin »

Tried it, no problem with that char. I'd say the column is simply too narrow. Make it wider.

JohnM
Posts: 247
Joined: 08 Jun 2006 11:59
Location: Tasmania, Australia

Re: Unicode in file names

Post by JohnM »

highend wrote:The first "char" contains a linebreak. That's probably the reason for your problem.
I understand. I was curious as to why XY was displaying the name like that.
admin wrote:Tried it, no problem with that char. I'd say the column is simply too narrow. Make it wider.
Made the column wider, no difference, see screenshot.
Attachments
Before2.PNG
Before2.PNG (10.41 KiB) Viewed 2599 times
Windows 8.1 x64
XYplorer 22.90.0105 beta

PeterH
Posts: 2776
Joined: 21 Nov 2005 20:39
Location: Germany

Re: Unicode in file names

Post by PeterH »

Just for interest: can someone explain the first line of the Table, i.e. the 2 mostright columns? As utf8 seems to show 2 (or 3?) chars, and utf8hex shows 6 bytes? Or how must I read it?
W7(x64) SP1 German
( +WXP SP3 )

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

Re: Unicode in file names

Post by admin »

PeterH wrote:Just for interest: can someone explain the first line of the Table, i.e. the 2 mostright columns? As utf8 seems to show 2 (or 3?) chars, and utf8hex shows 6 bytes? Or how must I read it?
utf8: It's each character as it would be written in UTF8.
utf8hex: since some utf8 characters might not be printable in each font, here's the bytes converted to hex.

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

Re: Unicode in file names

Post by admin »

@JohnM: Which font are you using in the file list?
JohnM wrote:
highend wrote:The first "char" contains a linebreak. That's probably the reason for your problem.
I understand. I was curious as to why XY was displaying the name like that.
BTW, this is not a linebreak but just the "paragraph" character (aka pilcrow), and it only appears in the UTF8 encoding of the filename which has nothing to do with how it is rendered in the file list.

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: Unicode in file names

Post by bdeshi »

Well, I see no problem.
charhidetest.png
charhidetest.png (5.07 KiB) Viewed 2566 times
[/size]
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

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

Re: Unicode in file names

Post by admin »

OK, I was on the right track: Bug confirmed for font "Microsoft Sans Serif 9". I don't think I can fix that. It's either a bug of the font, or of the font related API.

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

Re: Unicode in file names

Post by admin »

PS: found a way to work around. :cup:

JohnM
Posts: 247
Joined: 08 Jun 2006 11:59
Location: Tasmania, Australia

Re: Unicode in file names

Post by JohnM »

admin wrote:@JohnM: Which font are you using in the file list?
I am using Tahoma.
Just updated to 15.00.0510 beta and it looks like your work around has done the trick. Thanks very much.
Windows 8.1 x64
XYplorer 22.90.0105 beta

rpnfan
Posts: 60
Joined: 07 Jan 2016 21:42

Re: Unicode in file names

Post by rpnfan »

I have the same problem. I can not rename a file name like:

asdf_3°_jklö.txt

Is this a general problem that XY can not handle those file names, while the Explorer can?

Best regards

Post Reply