Hi there,
First, I'm a long time user of XYPlorer and it makes my day to day life far easier and more efficient (I love it ) - So a very big thank you for an amazing piece of software.
I think I've found a bit of a bug when using the 'Copy the textual contents of the focused List item' functionality where the text file contains special characters.
For example;
If you have a text file with the following in it
'Åland Islander'
and you use the copy text contents functionality on it, you get the following in your clipboard;
'ÃNELland Islander'
With the NEL being a UTF Next Line.
I've not managed to find a way around this as yet, so I think it may well be a bug...?
Cheers
Macca
Potential Bug With Copying Contents of Text Files Containing Special Characters
Re: Potential Bug With Copying Contents of Text Files Containing Special Characters
A way around this: Save the document as "UTF-16 LE with BOM"
Works fine with your example
Works fine with your example
One of my scripts helped you out? Please donate via Paypal
-
- Site Admin
- Posts: 60357
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Potential Bug With Copying Contents of Text Files Containing Special Characters
Could you send me that text file for testing?
FAQ | XY News RSS | XY Twitter
Re: Potential Bug With Copying Contents of Text Files Containing Special Characters
Sure. no problems (should be attached to this post)admin wrote:Could you send me that text file for testing?
- Attachments
-
- Xyplorer_test.zip
- (185 Bytes) Downloaded 31 times
-
- Site Admin
- Posts: 60357
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Potential Bug With Copying Contents of Text Files Containing Special Characters
The contents of the file are copied to clipboard byte by byte. I cannot detect any difference.
The file format is "UTF-8 without BOM", and that's what you also get in the clipboard.
I can't really see any problem.
The file format is "UTF-8 without BOM", and that's what you also get in the clipboard.
I can't really see any problem.
FAQ | XY News RSS | XY Twitter
Re: Potential Bug With Copying Contents of Text Files Containing Special Characters
Hi there,
Sorry for the delayed reply - I've been on holiday for a few weeks
I'm a bit confused now as I've tried this on several machines and always get the same results.
For clarity, my steps are;
Thanks
Macca
Sorry for the delayed reply - I've been on holiday for a few weeks
I'm a bit confused now as I've tried this on several machines and always get the same results.
For clarity, my steps are;
- Open the attached 'Xyplorer_test.zip' and extract the 'Xyplorer_test.txt' to my PC
- Use the 'Copy the textual contents of the focused List item' functionality on the Xyplorer_test.txt' file
- Paste the contents of your clipboard into Notepad and you get 'Ã land Islander'
- Paste the contents of your clipboard into Notepad++ and you get ''ÃNELland Islander''
- If you open up 'Xyplorer_test.txt' in either Notepad or Notepad++, select / copy the text and then paste it into Notepad or Notepad++, you get the expected result of 'Åland Islander'
Thanks
Macca
-
- Site Admin
- Posts: 60357
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Potential Bug With Copying Contents of Text Files Containing Special Characters
I see the same, but it's not a problem of XYplorer.
You can verify using this script
or using this script
that the file's bytes are correctly copied to the clipboard.
The problem is caused by Notepad / Notepad ++ and how they interprete BOM-less UTF-8 on pasting.
You can verify using this script
Code: Select all
charview <clipboard>;
Code: Select all
echo hexdump(<clipboard>);
The problem is caused by Notepad / Notepad ++ and how they interprete BOM-less UTF-8 on pasting.
FAQ | XY News RSS | XY Twitter
-
- Site Admin
- Posts: 60357
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Potential Bug With Copying Contents of Text Files Containing Special Characters
Wait a moment. Now I see it's the other way round! XYplorer should NOT copy the text raw byte by raw byte, but the interpreted UTF8! The function is called "Text" not "Bytes". So you were totally right!
Wait for the next version...
Wait for the next version...
FAQ | XY News RSS | XY Twitter
Re: Potential Bug With Copying Contents of Text Files Containing Special Characters
You Sir, are a star!admin wrote: Wait a moment. Now I see it's the other way round! XYplorer should NOT copy the text raw byte by raw byte, but the interpreted UTF8! The function is called "Text" not "Bytes". So you were totally right!
Wait for the next version...
I thought I was going Mad!