bugGNU nano - Bugs: bug #38888, [Request] add the ability to...


bug #38888: [Request] add the ability to handle UTF-16 encoded files

Submitted by:  None
Submitted on:  Sat 04 May 2013 05:38:05 PM UTC  
Severity: 1 - WishStatus: Wont Fix
Assigned to: NoneOpen/Closed: Closed

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Fri 24 Feb 2017 12:12:25 PM UTC, comment #4:

Meanwhile nano's source code has been streamlined by using some knowledge of UTF-8. Making it work for UTF-16 too will be too hard. The only possibility would be to convert UTF-16 to UTF-8 upon reading and saving a file. But you could probably make a little script, say n16.sh, that does the conversion before feeding it to nano, and converting the result back.

Benno Schulenberg <bens>
Project Administrator
Mon 02 Sep 2013 10:38:17 PM UTC, comment #3:

My apologies, but I have not had the time to get a fix for this to work. I'm not going to be doing any more work on nano for the time being.

Bob Hogg <rwhogg>
Tue 18 Jun 2013 12:38:11 PM UTC, comment #2:

Based on a cursory source code reading, it appears that nano only specifically supports UTF-8. However, adding support for UTF-16 might not be too difficult. I'll try and add support for it myself over the next few weeks, and if it works I can send you a patch or something. No promises that I'll be able to get it to work though.

Bob Hogg <rwhogg>
Sat 04 May 2013 05:40:02 PM UTC, comment #1:

This is for nano 2.2.6.

Sat 04 May 2013 05:38:05 PM UTC, original submission:

Nano can't read UTF-16 encoded files, shows garbage. Such a file is attached to this bug report.



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files
file #28017:  local_settings.txt added by None (3KiB - text/plain)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by bens (Updated the item)
  • -unavailable- added by dennisd
  • -unavailable- added by rwhogg (Posted a comment)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 24 Feb 2017 12:12:25 PM UTCbensStatusNone=>Wont Fix
    Fri 24 Apr 2015 09:16:21 AM UTCbensSeverity3 - Normal=>1 - Wish
      Summarycan\'t read UTF-16 encoded files=>[Request] add the ability to handle UTF-16 encoded files
    Wed 19 Feb 2014 08:47:47 PM UTCdennisdCarbon-Copy-=>Added dennisd
    Sat 04 May 2013 05:38:05 PM UTCNoneAttached File-=>Added local_settings.txt, #28017

    Back to the top

    Powered by Savane 3.1-cleanup1