473,670 Members | 2,298 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

encoding multiple character sets

Hi

I am doing a project where I have to use multiple character sets for the
input. They would be English, Symbol and possible Greek, These will be used
as symbols for processing an algebraic expression. I need to input them
and then display them on a windows screen. There is a total of 10 symbols
not in the ASCII character set.
This is a new area for me and would appreciate some pointers on how to
approach the problem. I am not sure if I should be looking at Unicode or
something else.

I would appreciate any suggestions of coding examples some one could
suggest. I am using c# and net 1.0.

Thanks in advance for your help.
Brian O'Haire
Nov 15 '05 #1
4 1931
In theory, for a WinForms app you probably don't even need to worry about
it. The String class is Unicode-based, so you should able able to manipulate
any character without any special code.

The trick is choosing a font that contains representations of all the
characters you'll be using. Arial contains the Latin alphabet, the Greek
alphabet, and many mathematical operators, but not as many as the Symbol
font. If you need to use a mix of fonts to display all the characters you
need, then it could get more complicated since the built-in controls mostly
only let you specify a single font for display.
"Brian O'Haire" <ge************ @cdpswat.com> wrote in message
news:OO******** ******@TK2MSFTN GP11.phx.gbl...
Hi

I am doing a project where I have to use multiple character sets for the
input. They would be English, Symbol and possible Greek, These will be used as symbols for processing an algebraic expression. I need to input them
and then display them on a windows screen. There is a total of 10 symbols
not in the ASCII character set.
This is a new area for me and would appreciate some pointers on how to
approach the problem. I am not sure if I should be looking at Unicode or
something else.

I would appreciate any suggestions of coding examples some one could
suggest. I am using c# and net 1.0.

Thanks in advance for your help.
Brian O'Haire

Nov 15 '05 #2
In theory, for a WinForms app you probably don't even need to worry about
it. The String class is Unicode-based, so you should able able to manipulate
any character without any special code.

The trick is choosing a font that contains representations of all the
characters you'll be using. Arial contains the Latin alphabet, the Greek
alphabet, and many mathematical operators, but not as many as the Symbol
font. If you need to use a mix of fonts to display all the characters you
need, then it could get more complicated since the built-in controls mostly
only let you specify a single font for display.
"Brian O'Haire" <ge************ @cdpswat.com> wrote in message
news:OO******** ******@TK2MSFTN GP11.phx.gbl...
Hi

I am doing a project where I have to use multiple character sets for the
input. They would be English, Symbol and possible Greek, These will be used as symbols for processing an algebraic expression. I need to input them
and then display them on a windows screen. There is a total of 10 symbols
not in the ASCII character set.
This is a new area for me and would appreciate some pointers on how to
approach the problem. I am not sure if I should be looking at Unicode or
something else.

I would appreciate any suggestions of coding examples some one could
suggest. I am using c# and net 1.0.

Thanks in advance for your help.
Brian O'Haire

Nov 15 '05 #3

"Bret Mulvey [MS]" <br***@online.m icrosoft.com> wrote in message
news:ZrCfb.6841 67$uu5.112128@s ccrnsc04...
In theory, for a WinForms app you probably don't even need to worry about
it. The String class is Unicode-based, so you should able able to manipulate any character without any special code.

The trick is choosing a font that contains representations of all the
characters you'll be using. Arial contains the Latin alphabet, the Greek
alphabet, and many mathematical operators, but not as many as the Symbol
font. If you need to use a mix of fonts to display all the characters you
need, then it could get more complicated since the built-in controls mostly only let you specify a single font for display.

A unicode font, something like Arial Unicode MS or other full unicode fonts
should have most of what you want. The main problem I'd see is simplicity of
input, I assume you are expecting the user to type in the commands. Do you
have a method of inserting those characters figured out? alt+number
combinations are not fun and several of those characters are not on a
standard english keyboard.

"Brian O'Haire" <ge************ @cdpswat.com> wrote in message
news:OO******** ******@TK2MSFTN GP11.phx.gbl...
Hi

I am doing a project where I have to use multiple character sets for the
input. They would be English, Symbol and possible Greek, These will be

used
as symbols for processing an algebraic expression. I need to input them and then display them on a windows screen. There is a total of 10 symbols not in the ASCII character set.
This is a new area for me and would appreciate some pointers on how to
approach the problem. I am not sure if I should be looking at Unicode or something else.

I would appreciate any suggestions of coding examples some one could
suggest. I am using c# and net 1.0.

Thanks in advance for your help.
Brian O'Haire


Nov 15 '05 #4

"Bret Mulvey [MS]" <br***@online.m icrosoft.com> wrote in message
news:ZrCfb.6841 67$uu5.112128@s ccrnsc04...
In theory, for a WinForms app you probably don't even need to worry about
it. The String class is Unicode-based, so you should able able to manipulate any character without any special code.

The trick is choosing a font that contains representations of all the
characters you'll be using. Arial contains the Latin alphabet, the Greek
alphabet, and many mathematical operators, but not as many as the Symbol
font. If you need to use a mix of fonts to display all the characters you
need, then it could get more complicated since the built-in controls mostly only let you specify a single font for display.

A unicode font, something like Arial Unicode MS or other full unicode fonts
should have most of what you want. The main problem I'd see is simplicity of
input, I assume you are expecting the user to type in the commands. Do you
have a method of inserting those characters figured out? alt+number
combinations are not fun and several of those characters are not on a
standard english keyboard.

"Brian O'Haire" <ge************ @cdpswat.com> wrote in message
news:OO******** ******@TK2MSFTN GP11.phx.gbl...
Hi

I am doing a project where I have to use multiple character sets for the
input. They would be English, Symbol and possible Greek, These will be

used
as symbols for processing an algebraic expression. I need to input them and then display them on a windows screen. There is a total of 10 symbols not in the ASCII character set.
This is a new area for me and would appreciate some pointers on how to
approach the problem. I am not sure if I should be looking at Unicode or something else.

I would appreciate any suggestions of coding examples some one could
suggest. I am using c# and net 1.0.

Thanks in advance for your help.
Brian O'Haire


Nov 15 '05 #5

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

Similar topics

48
4620
by: Zenobia | last post by:
Recently I was editing a document in GoLive 6. I like GoLive because it has some nice features such as: * rewrite source code * check syntax * global search & replace (through several files at once) * regular expression search & replace. Normally my documents are encoded with the ISO setting. Recently I was writing an XHTML document. After changing the encoding to UTF-8 I used the
10
687
by: Christopher H. Laco | last post by:
Long story longer. I need to get web user input into a backend system that a) only grocks single byte encoding, b) expectes the data transer to be 1 bytes = 1 character, and c) uses the HP Roman-6 codepage system wide. As much as it sounds good, UTF/Unicode encoding is not an option, nor is changing the codepage. Tackling the first is easy via Encoding.Default.GetBytes and shoving it over the network. However, Encoding.Default is the...
7
4959
by: Mark | last post by:
Hi... I've been doing a lot of work both creating and consuming web services, and I notice there seems to be a discontinuity between a number of the different cogs in the wheel centering around windows-1252 and that it is not equivalent to iso-8859-1. Looking in the registry under HKEY_CLASSES_ROOT\MIME\Database\Charset and \Codepage, it seems that all variations on iso-8859-1 (latin1, etc) are mapped to code page 1252, which I'm...
38
2836
by: lawrence | last post by:
I'm just now trying to give my site a character encoding of UTF-8. The site has been built in a hodge-podge way over the last 6 years. The validator tells me I've lots of characters that don't belong to the UTF-8 encoding. Other than changing them by hand, can anyone think of a clever way to find and convert these characters? http://validator.w3.org/check?uri=http%3A%2F%2Fwww.krubner.com%2F
37
10146
by: chandy | last post by:
Hi, I have an Html document that declares that it uses the utf-8 character set. As this document is editable via a web interface I need to make sure than high-ascii characters that may be accidentally entered are properly represented when the document is served. My programming language allows me to get the ascii value for any individual character so what I am doing when a change is saved is to look at each character in the content and...
0
266
by: Brian O'Haire | last post by:
Hi I am doing a project where I have to use multiple character sets for the input. They would be English, Symbol and possible Greek, These will be used as symbols for processing an algebraic expression. I need to input them and then display them on a windows screen. There is a total of 10 symbols not in the ASCII character set. This is a new area for me and would appreciate some pointers on how to approach the problem. I am not...
37
3370
by: Zhiv Kurilka | last post by:
Hi, I have a text file with following content: "((^)|(.* +))§§§§§§§§" if I read it with: k=System.IO.StreamReader( "file.txt",System.Text.Encoding.ASCII); k.readtotheend()
10
3340
by: hsmit.home | last post by:
Hi everyone, I'm having some difficulty with the following piece of code. I have stripped it to it's bare minimum to demonstrate the problem at hand. Compiler: MS Visual C++ 2005 Express Edition (similar problem arises with 2008) Runtime Library: All multi-threaded variants have been seen to fail |
1
2733
by: Alexander Adam | last post by:
Hi, I am a bit list in encoding related stuff. Let me explain what I am doing (yes it's C++ :)): I am getting some input content due Expat Xml Parser. I've setup Expat to use wchar_t. First question is this -- what is the difference of unsigned short, wchar_t and char? Okay, wchar_t is an built-in type of C++ and its two bytes of size whereas char is always one byte.
0
8469
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8903
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8814
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6213
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5684
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4391
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2800
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2042
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1794
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.