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?
Xed unable to open 8mb notepad++ text file
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Xed unable to open 8mb notepad++ text file
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.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Xed unable to open 8mb notepad++ text file
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
converted
:
Code: Select all
"utf-16.txt" [converted] 1 line, 10 characters
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Your data and OS are backed up....right?