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 May 4 17:38:05 2013  
Severity: 1 - WishStatus: Wont Fix
Assigned to: NoneOpen/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Fri Feb 24 12:12:25 2017, 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 Sep 2 22:38:17 2013, 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 Jun 18 12:38:11 2013, 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 May 4 17:40:02 2013, comment #1:

This is for nano 2.2.6.

Sat May 4 17:38:05 2013, 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 (3kB - 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 Feb 24 12:12:25 2017bensStatusNone=>Wont Fix
    Fri Apr 24 09:16:21 2015bensSeverity3 - Normal=>1 - Wish
      Summarycan\'t read UTF-16 encoded files=>[Request] add the ability to handle UTF-16 encoded files
    Wed Feb 19 20:47:47 2014dennisdCarbon-Copy-=>Added dennisd
    Sat May 4 17:38:05 2013NoneAttached File-=>Added local_settings.txt, #28017

    Back to the top

    Powered by Savane 3.1-cleanup1