- 论坛徽章:
- 0
|
DBCS字符在存储时两边用0x0E, 0x0F与SBCS字符分隔, 0Exxxx0F是表示单个DBCS字符; 有多个法子可以看到在不同CCSID下,给定HEX序列对应的DBCS字符:
- ICU的converter explorer: http://demo.icu-project.org/icu-bin/convexp?s=IBM&s=ALL
- 在400上用各种HLL简单写几行代码
... ...
至于楼主的那个字符,在935里好象是没有呀;
顺便我把我刚才用的c++代码PASTE上, 楼主可以用它作为查HEX序列对应的字符的辅助:
/**
* @file htoa.cpp
*
* conver HEX input stream to charater strings
* $Id$
* @version $Revision$
* @author $Author$
* @date $LastChangedDate$
*/
// stl incs
# include <iostream>
# include <string>
using namespace std;
# define _MAX_LEN 0x4000 // 16k
int main(){
unsigned char buf[_MAX_LEN] = {0};
char hex[2 + 1] = {0};
for(int i = 0; i < _MAX_LEN && cin.read(hex, 2); i++){
buf = (unsigned char)strtoul(hex, NULL, 16);
}
cout << buf << endl;
return 0;
} |
|