6.12.1.1. Individual encodings

We create one module per encoding.
Start python section to interscript/encoding/Ebcdic_Cp037.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #Ebcdic_Cp037 encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','Ebcdic_Cp037.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def Ebcdic_Cp037_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def Ebcdic_Cp037_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/Ebcdic_Cp037.py[1]
Start python section to interscript/encoding/Ebcdic_Cp1026.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #Ebcdic_Cp1026 encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','Ebcdic_Cp1026.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def Ebcdic_Cp1026_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def Ebcdic_Cp1026_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/Ebcdic_Cp1026.py[1]
Start python section to interscript/encoding/Ebcdic_Cp500.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #Ebcdic_Cp500 encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','Ebcdic_Cp500.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def Ebcdic_Cp500_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def Ebcdic_Cp500_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/Ebcdic_Cp500.py[1]
Start python section to interscript/encoding/Ebcdic_Cp875.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #Ebcdic_Cp875 encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','Ebcdic_Cp875.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def Ebcdic_Cp875_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def Ebcdic_Cp875_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/Ebcdic_Cp875.py[1]
Start python section to interscript/encoding/Mac_Cyrillic.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #Mac_Cyrillic encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','Mac_Cyrillic.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def Mac_Cyrillic_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def Mac_Cyrillic_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/Mac_Cyrillic.py[1]
Start python section to interscript/encoding/Mac_Greek.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #Mac_Greek encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','Mac_Greek.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def Mac_Greek_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def Mac_Greek_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/Mac_Greek.py[1]
Start python section to interscript/encoding/Mac_Iceland.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #Mac_Iceland encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','Mac_Iceland.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def Mac_Iceland_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def Mac_Iceland_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/Mac_Iceland.py[1]
Start python section to interscript/encoding/Mac_Latin2.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #Mac_Latin2 encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','Mac_Latin2.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def Mac_Latin2_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def Mac_Latin2_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/Mac_Latin2.py[1]
Start python section to interscript/encoding/Mac_Roman.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #Mac_Roman encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','Mac_Roman.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def Mac_Roman_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def Mac_Roman_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/Mac_Roman.py[1]
Start python section to interscript/encoding/Mac_Turkish.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #Mac_Turkish encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','Mac_Turkish.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def Mac_Turkish_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def Mac_Turkish_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/Mac_Turkish.py[1]
Start python section to interscript/encoding/PC_Cp437.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #PC_Cp437 encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','PC_Cp437.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def PC_Cp437_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def PC_Cp437_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/PC_Cp437.py[1]
Start python section to interscript/encoding/PC_Cp737.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #PC_Cp737 encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','PC_Cp737.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def PC_Cp737_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def PC_Cp737_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/PC_Cp737.py[1]
Start python section to interscript/encoding/PC_Cp775.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #PC_Cp775 encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','PC_Cp775.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def PC_Cp775_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def PC_Cp775_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/PC_Cp775.py[1]
Start python section to interscript/encoding/PC_Cp850.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #PC_Cp850 encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','PC_Cp850.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def PC_Cp850_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def PC_Cp850_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/PC_Cp850.py[1]
Start python section to interscript/encoding/PC_Cp852.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #PC_Cp852 encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','PC_Cp852.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def PC_Cp852_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def PC_Cp852_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/PC_Cp852.py[1]
Start python section to interscript/encoding/PC_Cp855.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #PC_Cp855 encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','PC_Cp855.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def PC_Cp855_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def PC_Cp855_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/PC_Cp855.py[1]
Start python section to interscript/encoding/PC_Cp857.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #PC_Cp857 encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','PC_Cp857.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def PC_Cp857_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def PC_Cp857_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/PC_Cp857.py[1]
Start python section to interscript/encoding/PC_Cp860.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #PC_Cp860 encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','PC_Cp860.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def PC_Cp860_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def PC_Cp860_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/PC_Cp860.py[1]
Start python section to interscript/encoding/PC_Cp861.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #PC_Cp861 encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','PC_Cp861.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def PC_Cp861_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def PC_Cp861_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/PC_Cp861.py[1]
Start python section to interscript/encoding/PC_Cp862.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #PC_Cp862 encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','PC_Cp862.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def PC_Cp862_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def PC_Cp862_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/PC_Cp862.py[1]
Start python section to interscript/encoding/PC_Cp863.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #PC_Cp863 encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','PC_Cp863.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def PC_Cp863_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def PC_Cp863_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/PC_Cp863.py[1]
Start python section to interscript/encoding/PC_Cp864.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #PC_Cp864 encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','PC_Cp864.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def PC_Cp864_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def PC_Cp864_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/PC_Cp864.py[1]
Start python section to interscript/encoding/PC_Cp865.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #PC_Cp865 encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','PC_Cp865.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def PC_Cp865_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def PC_Cp865_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/PC_Cp865.py[1]
Start python section to interscript/encoding/PC_Cp866.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #PC_Cp866 encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','PC_Cp866.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def PC_Cp866_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def PC_Cp866_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/PC_Cp866.py[1]
Start python section to interscript/encoding/PC_Cp869.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #PC_Cp869 encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','PC_Cp869.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def PC_Cp869_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def PC_Cp869_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/PC_Cp869.py[1]
Start python section to interscript/encoding/PC_Cp874.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #PC_Cp874 encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','PC_Cp874.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def PC_Cp874_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def PC_Cp874_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/PC_Cp874.py[1]
Start python section to interscript/encoding/Windows_Cp1250.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #Windows_Cp1250 encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','Windows_Cp1250.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def Windows_Cp1250_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def Windows_Cp1250_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/Windows_Cp1250.py[1]
Start python section to interscript/encoding/Windows_Cp1251.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #Windows_Cp1251 encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','Windows_Cp1251.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def Windows_Cp1251_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def Windows_Cp1251_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/Windows_Cp1251.py[1]
Start python section to interscript/encoding/Windows_Cp1252.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #Windows_Cp1252 encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','Windows_Cp1252.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def Windows_Cp1252_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def Windows_Cp1252_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/Windows_Cp1252.py[1]
Start python section to interscript/encoding/Windows_Cp1253.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #Windows_Cp1253 encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','Windows_Cp1253.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def Windows_Cp1253_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def Windows_Cp1253_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/Windows_Cp1253.py[1]
Start python section to interscript/encoding/Windows_Cp1254.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #Windows_Cp1254 encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','Windows_Cp1254.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def Windows_Cp1254_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def Windows_Cp1254_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/Windows_Cp1254.py[1]
Start python section to interscript/encoding/Windows_Cp1255.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #Windows_Cp1255 encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','Windows_Cp1255.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def Windows_Cp1255_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def Windows_Cp1255_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/Windows_Cp1255.py[1]
Start python section to interscript/encoding/Windows_Cp1256.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #Windows_Cp1256 encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','Windows_Cp1256.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def Windows_Cp1256_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def Windows_Cp1256_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/Windows_Cp1256.py[1]
Start python section to interscript/encoding/Windows_Cp1257.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #Windows_Cp1257 encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','Windows_Cp1257.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def Windows_Cp1257_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def Windows_Cp1257_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/Windows_Cp1257.py[1]
Start python section to interscript/encoding/Windows_Cp1258.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #Windows_Cp1258 encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','Windows_Cp1258.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def Windows_Cp1258_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def Windows_Cp1258_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
End python section to interscript/encoding/Windows_Cp1258.py[1]
Start python section to interscript/encoding/Windows_Cp874.py[1 /1 ]
     1: #line 196 "ms_codepages.ipk"
     2: #Windows_Cp874 encoding
     3: #line 196 "ms_codepages.ipk"
     4: import string
     5: #line 196 "ms_codepages.ipk"
     6: import re
     7: #line 196 "ms_codepages.ipk"
     8: from array import array
     9: #line 196 "ms_codepages.ipk"
    10: import interscript
    11: #line 196 "ms_codepages.ipk"
    12: 
    13: #line 196 "ms_codepages.ipk"
    14: tou = array('H')
    15: #line 196 "ms_codepages.ipk"
    16: filename = interscript.bind_resource_name('encoding','Windows_Cp874.dat')
    17: #line 196 "ms_codepages.ipk"
    18: f = open(filename,'rb')
    19: #line 196 "ms_codepages.ipk"
    20: tou.fromfile(f,256)
    21: #line 196 "ms_codepages.ipk"
    22: f.close()
    23: #line 196 "ms_codepages.ipk"
    24: del f
    25: #line 196 "ms_codepages.ipk"
    26: 
    27: #line 196 "ms_codepages.ipk"
    28: def Windows_Cp874_to_unicode(ch):
    29: #line 196 "ms_codepages.ipk"
    30:   return tou[ch]
    31: #line 196 "ms_codepages.ipk"
    32: 
    33: #line 196 "ms_codepages.ipk"
    34: def Windows_Cp874_to_utf8(s):
    35: #line 196 "ms_codepages.ipk"
    36:   u = ''
    37: #line 196 "ms_codepages.ipk"
    38:   d = tou
    39: #line 196 "ms_codepages.ipk"
    40:   for ch in s:
    41: #line 196 "ms_codepages.ipk"
    42:     u = a + utf8(d[ch])
    43: #line 196 "ms_codepages.ipk"
    44:   return u
    45: #line 196 "ms_codepages.ipk"
    46: 
    47: 
    48: 
End python section to interscript/encoding/Windows_Cp874.py[1]