473,396 Members | 1,913 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,396 software developers and data experts.

What is UTF-8?

I can save a file as ANSI (I think I know what that is) or Unicode (I think
I know what that is) or UTF-8, (I've no idea what that is).
Can someone give me a brief into to UTF-8?

I get the impression I should be using it for clipboard but maybe not for
files.
Thanks

For example:

ITextDocument::Save Method
....snip...
CodePage
[in] The specified code page. Common values are CP_ACP (zero: system ANSI
code page), 1200 (Unicode), and 1208 (Unicode transformation format
(UTF)-8).
Nov 21 '05 #1
4 1509
" Just Me" <gr****@a-znet.com> schrieb:
I can save a file as ANSI (I think I know what that is) or Unicode (I think
I know what that is) or UTF-8, (I've no idea what that is).
Can someone give me a brief into to UTF-8?


UTF-8 is a text encoding:

UTF-8 and Unicode Standards
<URL:http://www.utf-8.com/>

UTF-8 is often used for encoding XML/XHTML files, for example, but you can
encode other text formats in UTF-8 too if the libraries used to read the
file can deal with this encoding.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #2
Great article. Makes me wonder if when running the English version of
Windows the system admits to surrogate space which I believe would always be
non existant and slow searches,

Thanks

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:e9**************@TK2MSFTNGP15.phx.gbl...
" Just Me" <gr****@a-znet.com> schrieb:
I can save a file as ANSI (I think I know what that is) or Unicode (I
think I know what that is) or UTF-8, (I've no idea what that is).
Can someone give me a brief into to UTF-8?


UTF-8 is a text encoding:

UTF-8 and Unicode Standards
<URL:http://www.utf-8.com/>

UTF-8 is often used for encoding XML/XHTML files, for example, but you can
encode other text formats in UTF-8 too if the libraries used to read the
file can deal with this encoding.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #3
Just Me,

UTF is a format on an external device.

In memory it is for characters (strings) forever Unicode.

I hope this helps?

Cor
Nov 21 '05 #4
If I understand, some characters take more that 16 bits in UTF. How do they
look in memory? More than 2 bytes??

Thanks, I think the doc will make more sense now. I kept reading Unicode and
wondered which UTF they meant - now I see they meant Unicode because it is
in memory.

"Cor Ligthert" <no************@planet.nl> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Just Me,

UTF is a format on an external device.

In memory it is for characters (strings) forever Unicode.

I hope this helps?

Cor

Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

38
by: Haines Brown | last post by:
I'm having trouble finding the character entity for the French abbreviation for "number" (capital N followed by a small supercript o, period). My references are not listing it. Where would I...
5
by: lkrubner | last post by:
I'm worried about idiot users that write long essays in Microsoft Word, then log into their accounts and bring up an HTML form and copy and paste the essay and hit submit. Or perhaps they do this...
3
by: siliconmike | last post by:
Somewhere there is a column called blogs - type TEXT with a FULLTEXT index. Most entries would be in English, but few might be in any other language. Now, if I make it UTF8, it will be a...
6
by: jmgonet | last post by:
Hello everybody, I'm having troubles loading a Xml string encoded in UTF-8. If I try this code: ------------------------------ XmlDocument doc=new XmlDocument(); String s="<?xml...
6
by: archana | last post by:
Hi all, can someone tell me difference between unicode and utf 8 or utf 18 and which one is supporting more character set. whic i should use to support character ucs-2. I want to use ucs-2...
7
by: Jimmy Shaw | last post by:
Hi everybody, Is there any SIMPLE way to convert from UTF-16 to UTF-32? I may be mixed up, but is it possible that all UTF-16 "code points" that are 16 bits long appear just the same in UTF-32,...
23
by: Allan Ebdrup | last post by:
I hava an ajax web application where i hvae problems with UTF-8 encoding oc chineese chars. My Ajax webapplication runs in a HTML page that is UTF-8 Encoded. I copy and paste some chineese chars...
35
by: Bjoern Hoehrmann | last post by:
Hi, For a free software project, I had to write a routine that, given a Unicode scalar value U+0000 - U+10FFFF, returns an integer that holds the UTF-8 encoded form of it, for example, U+00F6...
4
by: Erwin Moller | last post by:
Hi, Background: I am working on a multilanguage project now, so I decided to switch to UTF-8 completely to avoid troubles with unicode character. I hope somebody can review my approach and...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.