Description of code conversion and file CODECO.TXT

For display of the information in various systems and languages there is a decode table which is formed at start of the terminal.

Decode system have three levels.

  1. Simple. For languages such as Russian and DOS semigraphics.
  2. Lead byte in multibyte. For languages such Chinese.
  3. Second byte in multibyte. For languages such Chinese.

The decode table accepted by default for first level is given below. < the Symbol at server> = < the Symbol at PC>

128=192 129=193 130=194 131=195
132=196 133=197 134=198 135=199
136=200 137=201 138=202 139=203
140=204 141=205 142=206 143=207
144=208 145=209 146=210 147=211
148=212 149=213 150=214 151=215
152=216 153=217 154=218 155=219
156=220 157=221 158=222 159=223
160=224 161=225 162=226 163=227
164=228 165=229 166=230 167=231
168=232 169=233 170=234 171=235
172=236 173=237 174=238 175=239
224=240 225=241 226=242 227=243
228=244 229=245 230=246 231=247
232=248 233=249 234=250 235=251
236=252 237=253 238=254 239=255
240=168 241=184 242=170 243=186
244=175 245=191 246=161 247=162
248=176 249=149 250=183 251=171
252=185 253=164 254=166 255=174

For level two and three default values are NULL, it means that no conversion will be made.

Code conversion setup dialog have six tabs. Two tabs per level.

  1. Conversion form server to PC
  2. Conversion form PC to server
  3. Conversion of lead byte form server to PC
  4. Conversion of lead byte form PC to server
  5. Conversion of second byte form server to PC
  6. Conversion of second byte form PC to server
  7. Additional conversion language.

Every list have four columns. You can change value by click on it in column "New value"

First level

 

Second level

Value NULL means that this code is not lead byte and should be proccessed ordinary through first level decode.

 

 

Third level

 

 

Fourth level

 

Using for automatic chars conversion according language specifics. There are four conversion methods : MultiByteToWideChar, LCMapString and combination of this methods. CodePage using for MultiByteToWideChar, others for LCMapString. Setting in example for conversion data from/to Simplified Chinese on server to Traditional Chinese on PC.

File CODECO.TXT

Decode table loading from file CODECO.TX. You can edit this file manualy. Also You can include this file into Your package.

Structure is following:
Src code, 1lev from server,1lev from PC, 2lev from server, 2lev from PC, 3lev from server, 3lev from PC,

For example:
157,157,157,157,253,157,253
means that code 157 will convert to 253 from PC for Lead byte and secod byte.