473,463 Members | 1,515 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Extended ASCII

I have the following code
for (byte i = 126; i < 159; i++

char c = (char)i
textBox1.Text += i + " " + c +" \r\n";

But this shows me no Umlaut (ä,ö,ü
How can I enable that I can get some umlaut's out of this?
Nov 16 '05 #1
5 7250

"Pete" wrote
But this shows me no Umlaut (,,)
How can I enable that I can get some umlaut's out of this?


"Extended ASCII" never had any standardized way of where to map "our"
letters.

A char in .NET is using Unicode, which for us northern folks means that our
letters is in the area much further up in the list, e.g.:

214:
220:
228:
229:
246:
252:

Maybe you've heard of Latin-1, which is included in Unicode.

// Bjorn A
Nov 16 '05 #2
thread.CurrentCulture
thread.CurrentUICulture

"Pete" <an*******@discussions.microsoft.com> wrote in message
news:64**********************************@microsof t.com...
Thx, got this.

The reason is one step further: I am reading an MQ Series stream to get messages. The messages have thoes umlaut in it. When I read it, I never get the original character. For example, when reading the queue as array of bytes I have get the value 129, which is in
the "" that I've put in the queue. But all I get when I put this in the textbox is a square, meaning not a real value I can present. Even when I read the queue as String s= queue.ReadString( queue.length )
I do not get the ""

Nov 16 '05 #3
Pete <an*******@discussions.microsoft.com> wrote:
The reason is one step further: I am reading an MQ Series stream to
get messages. The messages have thoes umlaut in it.
When I read it, I never get the original character. For example, when
reading the queue as array of bytes I have get the value 129, which
is in the "?" that I've put in the queue.
But all I get when I put this in the textbox is a square, meaning not
a real value I can present. Even when I read the queue as
String s= queue.ReadString( queue.length )
I do not get the "?"


You need to work out what encoding the original stream was written in.
It may well have been written in the default encoding for your
platform, in which case you need to specify Encoding.Default when you
create the reader on the stream.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #4
Pete <an*******@discussions.microsoft.com> wrote:
I have the following code:
for (byte i = 126; i < 159; i++)
{
char c = (char)i;
textBox1.Text += i + " " + c +" \r\n";
}
But this shows me no Umlaut (?,?,?)
How can I enable that I can get some umlaut's out of this?


See http://www.pobox.com/~skeet/csharp/unicode.html

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #5
Brad Williams <sp**@spam.com> wrote:
thread.CurrentCulture
thread.CurrentUICulture


What effect do you believe they will have?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #6

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

Similar topics

1
by: | last post by:
Hey all, Quick question...been bugging me for some time, really. I have a console app, it does some things, and I want to save an array of text to a text file. The text consists of ASCII and...
13
by: bgbauer70 | last post by:
My appologies if this ends up being a duplicate post. For some reason the first post never showed up. I've tried about 300 iterrations of this same ability, and none of them seem to work in...
13
by: kristofvdw | last post by:
Hi, I have to treat a given text file, but haven't got a clue which extended ASCII set it is using. Opening the file in Windows' Notepad or in DOS, all accented letters and symbols are wrong....
4
by: wob | last post by:
Many thanks for those who responded to my question of "putting greek char into C string". In searching for an solution, I noticed that there are more than one version of "Extended ASCII...
1
by: Blent stn | last post by:
Hi, im trying to upload somefiles using sockets to a FTP site. But i've some problems with extended ascii characters. When i try "MKD blent" the created folder is "blent". The directory name is...
3
by: JSM | last post by:
Hi, I am just trying to port an existing simple encryption routine to C#. this routine simply adds/substracts 10 ascii characters to each character in a text file (except quotes). The routine...
4
by: =?Utf-8?B?Um9zaGFuIFIuRA==?= | last post by:
Hi All, I am new to C# programming; I am developing an application for recording audio data using voice modem. I am using HyperTerminal to manually process audio data. The modem when configured...
1
by: s123 | last post by:
Hi, while invoking a web service, if in xml request message i wrap the extended ASCII characters with CDATA it is not returning the desired result, while this is not the case if i do not wrap...
13
by: ramif | last post by:
Is there a way to print extended ASCII in C?? I tried to code something, but it only displays strange symbols. here is my code: main() { char chr = 177; //stores the extended ASCII...
0
by: jumperbl | last post by:
I am converting hex to ASCII and one of the words has a dot in the middle, which is in the extended ascii characters. when i do this i get the ascii chars. ...
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
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
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
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 projectplanning, coding, testing,...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
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 ...

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.