Re: What is PeekChar() ???

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Morten Wennevik (MortenWennevik_at_hotmail.com)
Date: 12/07/04


Date: Tue, 07 Dec 2004 14:02:58 +0100

On Tue, 7 Dec 2004 11:25:45 -0000, Jon Skeet [C# MVP] <skeet@pobox.com>
wrote:

> Morten Wennevik <MortenWennevik@hotmail.com> wrote:
>> Hard to say. If the text could be in different encodings you would
>> probably benefit from using Unicode or UTF8. If you only need the
>> standard default extended English ascii you could get that specific
>> encoding with
>> Encoding e = Encoding.GetEncoding("Windows-1252");
>> Encoding e = Encoding.GetEncoding("ISO-8859-1");
>> I believe the code table are the same for these two code pages.
>
> No they're not - they differ between 128 and 140.
>

I see. Which is considered the standard western codepage? Or is the
standard something that differs between europe and usa?

-- 
Happy Coding!
Morten Wennevik [C# MVP]


Relevant Pages

  • Re: RfD: XCHAR wordset (Version 3)
    ... encodings have less characters, so you will end up mapping some characters ... Unicode has been supported for more than 10 ... Forth-94 standard to have separate or mixed stacks for floating point. ... proposal should be split into two, XCHAR in one and XCHAR EXT in the ...
    (comp.lang.forth)
  • Converting text between various encodings
    ... I'm playing with converting text strings between various encodings like ... Unicode and UTF8 and UTF7. ... a string to be converted and a long integer ...
    (microsoft.public.scripting.vbscript)
  • Re: RfD: XCHAR wordset (for UTF-8 and alike)
    ... >>apps out there that use multiple encodings. ... >of those substantial apps are ignoring the standard already. ... >Xchars were designed for dealing with one encoding used throughout ...
    (comp.lang.forth)
  • Re: CString and UTF-8
    ... and variable character width encodings are a nightmare for in-memory ... The current proposal for the standard is to introduce char16_t and char32_t ... (UTF-16 vs. UTF-32) ...
    (microsoft.public.vc.mfc)
  • Re: RfD: XCHAR wordset (Version 3)
    ... Changing encodings is messy. ... A standard system can provide ways to change the internal and external ... A legacy application that uses one or several non-Unicode encodings is not ... setting LANG=C makes your local terminal UTF-8 unaware. ...
    (comp.lang.forth)