Xed unable to open 8mb notepad++ text file

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
jwiz
Level 4
Level 4
Posts: 342
Joined: Tue Dec 20, 2016 6:59 am

Xed unable to open 8mb notepad++ text file

Post by jwiz »

Upon trying to open a 8mb text file created with notepad++ I get an error message that this file cannot be opened due to encoding problems.
Encoding problems in a text file, I thought and opened it with 'wine notepad' instead to take a look.
There I saw upon saving the file that it was encoded in UTF-16.
Upon changing that to UTF-8 I can open the file with 'xed' now.
Does 'xed' not support UTF-16 encoding?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Flemur
Level 20
Level 20
Posts: 10097
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Xed unable to open 8mb notepad++ text file

Post by Flemur »

jwiz wrote: Wed Jan 20, 2021 8:58 amDoes 'xed' not support UTF-16 encoding?
I created a UTF-16 file with wine/notepad and xed opened it OK and also offered to save it as UTF-16, among many others - but it didn't save it correctly.

Here, utf-16.txt was created with notepad, opened with xed then saved with xed as UTF-16 and UTF16LE

Code: Select all

$ file ut*
utf-16-LE.txt: ASCII text
utf-16.txt:    Little-endian UTF-16 Unicode text, with CR line terminators 
utf-16a.txt:   ASCII text
Opening them all with vi, only the one saved by notepad says converted:

Code: Select all

"utf-16.txt" [converted] 1 line, 10 characters
Edit: FWFW, leafpad opens utf-16.txt without any complaints, but silently trashes the contents.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Locked

Return to “Software & Applications”