[MonoDevelop] open .cs file

Alan alan.mcgovern at gmail.com
Sun Nov 6 07:45:23 EST 2011


Hi,

We have made changes in the last release or two to better auto-detect the
encoding of a file. However it is worth pointing out that not all encodings
are available on all platforms so it will always be important that you make
sure you choose a 'good' encoding. If a file contains text an unrecognised
encoding the only thing monodevelop can do is corrupt your file by
attempting to convert it to UTF-8 (or whatever) from the unknown encoding.
The best solution would be for the user to open the problematic file in the
application which created it (as it can understand the encoding) and then
re-save it under a usable encoding.

Hope this helps,
Alan

On 4 November 2011 12:41, Ian Norton <ian.norton-badrul at thales-esecurity.com
> wrote:

>
>
> On Fri, Nov 04, 2011 at 10:22:26AM +0000, fabio wrote:
> > Ok Allan you are right!! is not a bug. the file created in older version
> of
> > visual studio was not saved in  unicode UTF8, The file created in VS2010
> can
> > be open with monodevelop without problem (they are saved in UNICODE), for
> > the older file (VS2008 and previous) save it in visual studio by select:
>
> I Beg to differ, I think MD should cleanly tell the user that the file is
> the
> wrong encoding, perhaps it might even be able to fix the encoding if it
> can be
> detected.
>
> Regards
>
> Ian
>
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20111106/94c143f1/attachment.html 


More information about the Monodevelop-list mailing list