Documentation
Back to website >

Convert7BitToAnsi (Pascalscript)

Description 

Convert7BitToAnsi converts the specified string with 7 bit umlaut encoding into an ANSI string.

Syntax

function Convert7BitToAnsi (const S: string): string;

Arguments

Convert7BitToAnsi converts a 7-bit string into an ANSI string. For 7-bit encoding, only the ASCI characters 0-127 are used. The umlauts are converted as follows:

7-bit Ansi
[ Ä
{ ä
\ Ö
| ö
] Ü
} ü
~ ß

The 7-bit coding is especially designed for the connection of data sources from large EDP.

Example

var
  S1: String;
  S2: String;
begin
  S1:='Mit Gro~-EDV hat man [rger';
  S2:=Convert7BitToAnsi(S1);
  ShowMessage(S2);
end;

Rules to understand the script can be found here.

The text 'Mit Gro~-EDV hat man [rger' assigned to the string variable S1. The function Convert7BitToAnsi converts the text into ANSI characters and assigns the result to the string variable S2.

ShowMessage shows: Mit Groß-EDV hat man Ärger