473,405 Members | 2,287 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 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 1803
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Philipp Lenssen | last post by:
How do I load and save a UTF-8 document in XML in ASP/VBS? Well, the loading* is not the problem actually -- the file is in UTF-8, and understood correctly -- but once saved, the UTF-8 is...
4
by: Andrew Inwards | last post by:
Is it possible to save a MS Word document in a string? I suspect not because Ive tried saving it in using various encoding formats and it always gets corrupted. Thanks Andrew
3
by: andy_ro | last post by:
Hi group, I have an web application where the user can upload a pdf file. This file is stored in a table, in a column of type ntext. The user can later request the content of this column, and...
0
by: Ersin Gençtürk | last post by:
hi, I am working with utf-8 encoded aspx files.But in visual studio.net 2003 when I make somechanges to a utf-8 aspx file and click save , it reverts the encoding to another (win-1254) format.I...
4
by: Husam | last post by:
Hi EveryBody: Is there any way to save my text file in Registry Key instaed of saving it in Drive C: or any other drive drive ? any help will be appreciated regard's Husam
3
by: Philip Wagenaar | last post by:
Framework 1.1 I want to start AcrobatReader to print a printjob under a specific username (so that the owner of the printjob is not the username of the application that the .net application runs...
5
by: Chad Miller | last post by:
Public mLength As Integer Public mChannels As Short Public mSampleRate As Integer Public mDataLength As Integer Public mBitsPerSample As Short Public Sub CreateWaveHeader(ByRef sPath As...
1
by: krikaran adel | last post by:
Hi, First of all I found your tips very usfull, of course these tips becuas of all years working in access. really greet site. my Quation: is this away to change fonts in reports so the...
0
by: a | last post by:
hallo vs 2005 here on saving an htm file with a custom encoding (from the little arrow on the Save button in the file save dialog window) how to have the iso-8859-1 encoding ? I'm in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.