[wingide-users] Detecting File Encoding

Michael Foord fuzzyman at voidspace.org.uk
Thu Apr 2 10:25:56 MDT 2009

Wingware Support wrote:
> Michael Foord wrote:
>> I wonder if Wing could do a better job of detecting UTF-8. I just 
>> opened a text file with a UTF-8 encoding and Wing displayed it using 
>> my preference default (Mac-roman which I have now changed) which 
>> mangled the non-ascii characters.
>> As in general, a file that successfully decodes with UTF-8 *is* 
>> UTF-8, it makes sense to try this *before* the default encoding.
> Interesting... I wasn't aware of that and was worrying that some weird
> encoding might look like utf-8.  If this is true and safe, it certainly
> seems the thing to do.  Thanks!
The trouble is that some 8 bit encodings will successfully decode any 
file - guaranteeing incorrect results in some circumstances.

>> In addition it would be nice to be able to modify the encoding used 
>> on a per file basis - I just a file displayed incorrectly as 
>> Mac-roman (my default). In order to change it I had to change my 
>> global preferences and re-open the file. Is there a better way to do 
>> this for displaying an individual file that may differ from the default?
> In File Properties there is an Encoding attribute that will operate just
> on the one file.
That's File Properties from the project pane. Cool - I failed to find 
that previously, thanks.



More information about the wingide-users mailing list