471,306 Members | 848 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,306 software developers and data experts.

Saving with diffrent encoding?

Hi all
I want to save my c# files with unicode encoding.
I have some choices in encoding like:
1-Unicode-CodePage1200
2-Unicode(UTF8 with singnaure)-CodePage 65001
3-Unicode(UTF8 without singnaure)-CodePage 65001

which encoding is better to use unicode?/?
thanks in advance
Jan 16 '06 #1
2 1723
perspolis <re*****@hotmail.com> wrote:
I want to save my c# files with unicode encoding.
I have some choices in encoding like:
1-Unicode-CodePage1200
2-Unicode(UTF8 with singnaure)-CodePage 65001
3-Unicode(UTF8 without singnaure)-CodePage 65001

which encoding is better to use unicode?/?


2) is good because it means that anything which understands byte-order
marks will know it's UTF-8. It also means that all ASCII characters in
your file still only take up one byte each.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Jan 16 '06 #2
> I want to save my c# files with unicode encoding.
I have some choices in encoding like:
1-Unicode-CodePage1200
2-Unicode(UTF8 with singnaure)-CodePage 65001
3-Unicode(UTF8 without singnaure)-CodePage 65001

which encoding is better to use unicode?/?
thanks in advance

When you say "my c# files", you mean the source files?

In general the answer is "it depends"
Here are some considerations: http://www.unicode.org/notes/tn12/

--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
Replace _year_ with _ to get the real email
Jan 16 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Philipp Lenssen | last post: by
4 posts views Thread by Andrew Inwards | last post: by
3 posts views Thread by andy_ro | last post: by
reply views Thread by Ersin Gençtürk | last post: by
4 posts views Thread by Husam | last post: by
3 posts views Thread by Philip Wagenaar | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.