Re: Change default encoding

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



No,I mean with VS editor not with stream writer..after creating some class
files I want to be saved with Unicode encoding..
"Jon Skeet [C# MVP]" <skeet@xxxxxxxxx> wrote in message
news:MPG.1e1c97f1cf2f0ab498cbfb@xxxxxxxxxxxxxxxxxxxxxxx
> perspolis <rezarms@xxxxxxxxxxx> wrote:
> > how can I change default encoding for saving C# files??
> > I want to set it always to Unicode -CodePage1200.
>
> Why not just always specify it when you start writing the file
> (presumably with a StreamWriter)? That would make it a lot clearer to
> anyone reading the code.
>
> --
> Jon Skeet - <skeet@xxxxxxxxx>
> http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
> If replying to the group, please do not mail me too


.



Relevant Pages

  • Re: writing to a binary file
    ... >> When I use an editor ... >>I should see only garbage ... The stream will be automatically ... you should return an int: ...
    (alt.comp.lang.learn.c-cpp)
  • Re: All programs are undefined
    ... Now using a hex editor I ... new-line on the last line of a text stream. ... editor I find the editor has added the newline to the last line of the ... chose to transform a text file without a trailing new-line into one ...
    (comp.lang.c)
  • Re: Script to edit a file
    ... Is this possible via a script? ... I would advise you to learn emacs which is a powerful and fully ... Otherwise, for a lot of simple edits, you can use sed, (Stream EDitor). ... For operating on a file in place, better to use ed than sed (thus the names, EDitor vs Stream EDitor). ...
    (comp.unix.programmer)