Re: Converting WideChar/WideString to AnsiChar/AnsiString



ckoegl wrote:
Hi,

I cannot find anything definitive in the Delphi docs and in the
relevant newsgroups that answers this simple question:

What is the exact definition of the WideChar to AnsiChar conversion
(and in extension of the WideString to AnsiString conversion)?

I suppose that for all WideChar values that are valid AnsiChar values
(i.e. the ones with Ord-values of 0 to 255) are preserved in the
conversion, but what about the rest?

Cheers,

Christoph
I think Delphi does some converting on it's own how ever..
look at these

WideCharToMultiByte
MultiByteToWideChar
FoldString
IsDBCSLeadByte

These are in the windows help, they should get you started.
http://webpages.charter.net/jamie_5";

.



Relevant Pages

  • Converting WideChar/WideString to AnsiChar/AnsiString
    ... What is the exact definition of the WideChar to AnsiChar conversion ... I suppose that for all WideChar values that are valid AnsiChar values ...
    (alt.comp.lang.borland-delphi)
  • Re: Converting WideChar/WideString to AnsiChar/AnsiString
    ... What is the exact definition of the WideChar to AnsiChar conversion ... I suppose that for all WideChar values that are valid AnsiChar values ... Converting a WideString to an AnsiString involves converting the WideString to the current system code page, but I'm pretty sure that effort is *not* used for converting WideChar to AnsiChar. ...
    (alt.comp.lang.borland-delphi)