• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 635
  • Last Modified:

Windows character set 1251(Cyrillic) ASCII to EBCDIC convertion table

Can someone tell me where I can find ASCII to EBCDIC convertion table for Cyrillic 1251 Windows character set?
0
ANBURAJU
Asked:
ANBURAJU
  • 2
1 Solution
 
BigRatCommented:
I don't know of one myself, but to make one is not that difficult.
I presume that you mean the EBCDIC Russian code page 1025, whose contents can be viewed, inter alia, here :-

http://publib.boulder.ibm.com/infocenter/pcomhelp/index.jsp?topic=/com.ibm.pcomm.doc/hcp_reference24.htm

The 1251 Windows code page can be viewed here :-

http://www.microsoft.com/globaldev/reference/sbcs/1251.htm
0
 
ANBURAJUAuthor Commented:
Thanks BigRat.

By the way, I need to convert all the text in the communication buffer from its ANSI Cyrillic 1251 to the equivalent EBCDIC character format, before I send this buffer to IBM Mainframe application. There could be some ready references that could have been used by someone. My search on the net gives me either one or the other character sets, nothing on the convertion data.

It would be of great help if someone points out some URLs to get the required conversion data.
0
 
BigRatCommented:
In which programming language?

Pseudo code :-

cp1251_to_cp1025 : array[0.255] of Char;

cp1251_to_cp1025[0] = 0;
...................................
...................................

You must look up the charcater in the cp1251 and search for it in 1025 and then set the entry to the EBCDIC code value.

for i from 0 to BuffLeng-1 do
   outBuffer[i] = cp1251_to_cp1025[inBuffer[i]];
done;

The main work is writing down the table by hand.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now