nccgroup / ncccodenavi

NCC Code Navigator
GNU Affero General Public License v3.0
55 stars 10 forks source link

Improved encoding management #40

Open metrodango opened 11 years ago

metrodango commented 11 years ago

Currently there is an automatic detection for the encoding of the text file. The algorithm assumes that there is some BOM header part at the beginning of the file, which is rarely the case in my experience.

It would be good to allow the user to set the encoding himself/herself for the session, as it is unlikely that this property will change within the project.

Defaulting to UTF-8 is probably better than the local ANSI page (as it is currently), because many systems/application are using UTF-8 by default now, and UTF-8 is backward compatible with ASCII.