Re: Change default encoding
- From: Jon Skeet [C# MVP] <skeet@xxxxxxxxx>
- Date: Wed, 28 Dec 2005 12:39:54 -0000
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: ASCII convention
... They routinely *abuse* the Unicode list for this purpose. ... Unicode is not suitable for writing systems. ... how they may be represented as sequences of codes. ... except on the standard itself. ... (comp.std.internat) - Re: Why doesnt strrstr() exist?
... > Unicode is a character set, not an encoding. ... > AFAIK the language doesn't specify how to deal with Unicode ... I am not *that* familliar with Java. ... (comp.lang.c) - Re: problem in using win32 DLL in c#
... you don't need to specify the EntryPoint unless it's different than the name of the function you're defining. ... Not to mention there is no information in the MSDN documentation indicating there is both a Unicode and ANSI version available. ... public extern static IntPtr GetProcAddress( ... let p/invoke handle all the dynamic loading mess for you and just use DllImport and declare the function you need to call. ... (microsoft.public.dotnet.languages.csharp) - Re: py3k s***s
... When tcl went through this they chose the eminently sensible route of not choosing a separate unicode type. ... Not only has python chosen to burden itself with two string types, but with 3 they've swapped roles. ... This is certainly the first time I've had to decide on an encoding before writing simple text to a file. ... (comp.lang.python) - Re: Strings in dialog from template
... UNICODE, like L"Ok" and use unicode version of functions, like ... in your example) you can specify name of your window class. ... CreateDialogIndirect() with a DLGTEMPLATE from memory. ... But if I try to use in the template buttons with captions containing ... (microsoft.public.win32.programmer.ui) |
|