anchor.diff:    // BG, 02.10.2012: converts several single byte code pages using an AnsiCharHighMap to unicode.
     TBuffConvHighMap = class(TBuffConverter)
     private
  -    FHighMap: AnsiCharHighMap;
  -    procedure UpdateHighMap;
  +    FMap: AnsiCharHighMap;
  +    procedure UpdateMap;
  +  protected
  +    procedure Assign(Source: TBuffConverter); override;
  +  public
  +    procedure AfterConstruction; override;
  +    function NextChar: TBuffChar; override;
  +  end;
  +
  +  // BG, 02.10.2012: converts the single byte code of ISO 8859 using an AnsiCharIsoMap to unicode.
  +  TBuffConvIsoMap = class(TBuffConverter)
  +  private
  +    FMap: AnsiCharISOMap;
  +    procedure UpdateMap;
     protected
       procedure Assign(Source: TBuffConverter); override;
     public
  
positive.code:   c1 := GetNext;
    case c1 of
      $00..$7F: Result := TBuffChar(c1);    // ANSI/ASCII
      $80, $FF: Result := TBuffChar($FFFD); // undefined
      // $81..$A0: Result := TBuffChar($FFFD);
  
      $8E:
      begin
  
negative.code:     function NextChar: TBuffChar; override;
    end;
  
    TBuffConvISO2022CN = class(TBuffConvEastAsia)
    private
      CNState1: (CNSTATE_ASCII, CNSTATE_TWOBYTE);
      CNState2: (CNSTATE2_NONE, STATE2_DESIGNATED_GB2312, STATE2_DESIGNATED_CNS11643_1);
      CNState3: (CNSTATE3_NONE, STATE3_DESIGNATED_CNS11643_2);
    protected
      procedure Assign(Source: TBuffConverter); override;
    public
      function NextChar: TBuffChar; override;
    end;
  
    TBuffConvISO2022KR = class(TBuffConvEastAsia)
      KRState1: (KRSTATE_ASCII, KRSTATE_TWOBYTE);
      KRState2: (KRSTATE2_NONE, STATE2_DESIGNATED_KSC5601);
    protected
      procedure Assign(Source: TBuffConverter); override;
    public
      function NextChar: TBuffChar; override;
    end;
  
  
  // CodePages (most names taken from http://msdn.microsoft.com/en-us/library/windows/desktop/dd317756%28v=vs.85%29.aspx):
  const CodePageInfos: array [0..161] of TBuffConvInfo = (
    // first entry must be code page CP_UNKNOWN!!!
    ( CodePage: CP_UNKNOWN; CharSet: UNKNOWN_CHARSET;     Converter: TBuffConvSingleByte;  Name: 'Unknown'),
    ( CodePage:     CP_ACP; CharSet: DEFAULT_CHARSET;     Converter: TBuffConvSingleByte;  Name: 'Default ANSI CP'),
  