github.com/shakinm/xlsReader@v0.9.12/xls/record/codepage.go (about)

     1  package record
     2  
     3  // CODEPAGE: Default Code Page
     4  var CodePageRecord = [2]byte{0x42, 0x00} //(42h)
     5  
     6  /*
     7  The CODEPAGE record stores the default code page (character set) used when the
     8  workbook was saved.
     9  
    10  Record Data
    11  Offset		Field Name		Size		Contents
    12  ------------------------------------------------
    13  4 			cv				2 			Code page the file is saved in:
    14  											01B5h (437 dec.) = IBM PC (Multiplan)
    15  											8000h (32768 dec.) = Apple Macintosh
    16  											04E4h (1252 dec.) = ANSI (Microsoft Windows)
    17  */
    18  
    19  type CodePage struct {
    20  	cv [2]byte
    21  }
    22  
    23  
    24  func (r *CodePage) Read(stream []byte) {
    25  	copy(r.cv[:],stream[:])
    26  }