473,655 Members | 3,056 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Extended ASCI Encoding

Hi,

Does anyone know what number to use with GetEncoding for 8 bit ASCI?

Cheers
Jul 21 '05 #1
4 2444
Is this what you want?
code page name
1200 "UTF-16LE", "utf-16", "ucs-2", "unicode", or "ISO-10646-UCS-2"
1201 "UTF-16BE" or "unicodeFFF E"
1252 "windows-1252"
65000 "utf-7", "csUnicode11UTF 7", "unicode-1-1-utf-7",
"unicode-2-0-utf-7", "x-unicode-1-1-utf-7", or "x-unicode-2-0-utf-7"
65001 "utf-8", "unicode-1-1-utf-8", "unicode-2-0-utf-8",
"x-unicode-1-1-utf-8", or "x-unicode-2-0-utf-8"
20127 "us-ascii", "us", "ascii", "ANSI_X3.4-1968", "ANSI_X3.4-1986",
"cp367", "csASCII", "IBM367", "iso-ir-6", "ISO646-US", or "ISO_646.irv:19 91"
54936 "GB18030"


"Stelrad Doulton" <___@____.com > wrote in message
news:e4******** ******@TK2MSFTN GP10.phx.gbl...
Hi,

Does anyone know what number to use with GetEncoding for 8 bit ASCI?

Cheers

Jul 21 '05 #2
Stelrad,

There is not 8 bit ASCI

There are code tables like the 437

A sample
\\\
Public Shared Sub main()
If File.Exists("C: \Test2\Text.txt ") Then _
File.Delete("C: \Test2\StringTe xt.txt")
Dim stw As New StreamWriter("C :\Test2\StringT ext.txt")
stw.WriteLine(" 123âäfabc")
stw.Close()
Dim Str As New StreamReader("C :\Test2\StringT ext.txt")
Dim arrInput As Byte() = _
System.Text.Enc oding.GetEncodi ng(437).GetByte s(Str.ReadToEnd )
Str.Close()
End Sub
///
I hope this helps,

Cor
Jul 21 '05 #3
Hi yeah,

I know about code tables. I wanted to know if there was an encoding which
corresponds to "Extended ASCI". I am not sure if this is even an ANSI / ISO
standard but I have a printer which seems to match what I have found on the
web about the character mappings which they call "Extended ASCI".

"Cor Ligthert" <no************ @planet.nl> wrote in message
news:Of******** ******@TK2MSFTN GP12.phx.gbl...
Stelrad,

There is not 8 bit ASCI

There are code tables like the 437

A sample
\\\
Public Shared Sub main()
If File.Exists("C: \Test2\Text.txt ") Then _
File.Delete("C: \Test2\StringTe xt.txt")
Dim stw As New StreamWriter("C :\Test2\StringT ext.txt")
stw.WriteLine(" 123âäfabc")
stw.Close()
Dim Str As New StreamReader("C :\Test2\StringT ext.txt")
Dim arrInput As Byte() = _
System.Text.Enc oding.GetEncodi ng(437).GetByte s(Str.ReadToEnd )
Str.Close()
End Sub
///
I hope this helps,

Cor

Jul 21 '05 #4
Stelrad Doulton <___@____.com > wrote:
I know about code tables. I wanted to know if there was an encoding which
corresponds to "Extended ASCI".
Code tables *are* "extended ASCII", as far as such a term is valid.
I am not sure if this is even an ANSI / ISO
standard but I have a printer which seems to match what I have found on the
web about the character mappings which they call "Extended ASCI".


There are several different code tables which could be meant by that
though. I suggest you find a code table which matches what your printer
uses, and use that.

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

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

Similar topics

0
1203
by: Maciej Zoltowski | last post by:
Hi, I've got a following problem with the order of fields in extended element: let's assume, that I have a complex type with a few fields, that I want to extend with additional field. In extended type I would like to have the possibility of entering fields (both from base and extended type) in any order, but during validation XMLSPY shows me an error. What am I doing wrong? Sample schema definition:
6
2383
by: barthome1 | last post by:
Hello, My company collects data from non-US sources. We are starting projects where this data will be output in an XML document and passed around to our applications and third party tools. The data includes some of the extended characters. We get strange accent marks, italics and the like. These characters have decimal value in the 200+ range.
11
1872
by: Mike Meyer | last post by:
Out of random curiosity, is there a PEP/thread/? that explains why Python symbols are restricted to 7-bit ascii? <mike -- Mike Meyer <mwm@mired.org> http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
1
2122
by: Bülent Üstün | 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 bülent" the created folder is "blent". The directory name is kept in a string. What should i convert its encoding to? If you have any idea to solve this, please reply. Thanks
4
7702
by: ASP Yaboh | last post by:
I am using StreamWriter's .Writeline() method to create a simple text file. I found that ASCII characters 255 & 254 are being inserted as the first two characters of the file which causes a 3rd-party users' parser to fail. It is not being inserted by my data as the first line starts with "LOGIN: ", i.e. hard-coded. Has anyone else encountered this? Is there any filtering settings I can apply? I looked through the documentation on
3
24500
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 for decrypting the file works fine however when I encrypt the file, several characters are corrupted. when I looked into it they are always extended ascii characters (eg "x" which is ascii character 120 gets translated to ascii character 130 which...
5
771
by: Stelrad Doulton | last post by:
Hi, Does anyone know what number to use with GetEncoding for 8 bit ASCI? Cheers
4
7226
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 in voice record mode sends the audio (PCM) data on the serial port, few of the characters from these are in Extended ASCII range i.e. more than 127 decimal. In HyperTerminal we can reset the property to force the incoming data to 7 bit ASCII,...
13
48065
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 of a symbol printf("Character with an ascii code of 177: %c \n", chr); //tries to print an ASCII symbol...
0
8380
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
8296
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8816
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
8710
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...
0
8598
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7310
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5627
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
4299
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1598
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.