高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】convert from unicode to cis9u=xxxx0
convert from unicode to cis(\u+xxxx)
convert from unicode to cis(\u+xxxx)
how can i convert from unicode (odwstring) to odstring with cis-sequences (\u+xxxx)?
you can use something like
code:
odwstring wstr;
odstring sres;
odstring stmp;
int nlen = wstr.length();
for (int i = 0; i < nlen; i++)
{
stmp.format("\\u+%04h", wstr[i]);
sres += stmp;
}
sergey slezkin
|