如何在系统下实现C语言的繁体字符串到简体字符串的转换?
1
2
三
四
五
六
七
八
九
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
公共静态字符串& lta href="/s?大& ampTN = 44039180 _ CPR & amp;fenlei = mv 6 quakxtz n 0 izrqichckpjm 4 NH 00t 1y 3 phrsm 1k 9 nwuwmhpbphfb 0 zwv 5 hcvrjm 3 RH 6 spfkwumw 85 hfynjn 4 NH 6 sgvpst 6 kdthsqpzwytjceqlgcpyw 9 uz 4 bmy-bii 4 wuwye TgN-tlwguv 3 enh 6 zrhmlpwtsnwbdrjtyphn 3n 0 " target = " _ blank " class = " Baidu-Baidubig5 & lt/a & gt;中文(字符串s)
{
尝试{
if ( s == null || s.equals(" ")
返回(" ");
String newstring = null
new String = new String(s . getbytes(& lt;a href="/s?大& ampTN = 44039180 _ CPR & amp;fenlei = mv 6 quakxtz n 0 izrqichckpjm 4 NH 00t 1y 3 phrsm 1k 9 nwuwmhpbphfb 0 zwv 5 hcvrjm 3 RH 6 spfkwumw 85 hfynjn 4 NH 6 sgvpst 6 kdthsqpzwytjceqlgcpyw 9 uz 4 bmy-bii 4 wuwye TgN-tlwguv 3 en h6 zrhmlpwtsnwbdrjtyphn3 n 0 " target = " _ blank " class = " Baidu-Baidubig5 & lt/a >;)、" & lta href="/s?wd = gb & ampTN = 44039180 _ CPR & amp;fenlei = mv 6 quakxtz n 0 izrqichckpjm 4 NH 00t 1y 3 phrsm 1k 9 nwuwmhpbphfb 0 zwv 5 hcvrjm 3 RH 6 spfkwumw 85 hfynjn 4 NH 6 sgvpst 6 kdthsqpzwytjceqlgcpyw 9 uz 4 bmy-bii 4 wuvye TgN-tlwguv 3 enh 6 zrhmlpwtsnwbdrjtyphn 3n 0 " target = " _ blank " class = " Baidu-Baidugb & lt/a & gt;2312" );
return(new string);
}
catch(UnsupportedEncodingException e)
{
退货单;
}
}
公共静态字符串ChineseTo & lta href="/s?大& ampTN = 44039180 _ CPR & amp;fenlei = mv 6 quakxtz n 0 izrqichckpjm 4 NH 00t 1y 3 phrsm 1k 9 nwuwmhpbphfb 0 zwv 5 hcvrjm 3 RH 6 spfkwumw 85 hfynjn 4 NH 6 sgvpst 6 kdthsqpzwytjceqlgcpyw 9 uz 4 bmy-bii 4 wuvye TgN-tlwguv 3 enh 6 zrhmlpwtsnwbdrjtyphn 3n 0 " target = " _ blank " class = " Baidu-Baidubig5 & lt/a & gt;(字符串s)
{
尝试{
if ( s == null || s.equals(" ")
返回(" ");
String newstring = null
new String = new String(s . getbytes(& lt;a href="/s?wd = gb & ampTN = 44039180 _ CPR & amp;fenlei = mv 6 quakxtz n 0 izrqichckpjm 4 NH 00t 1y 3 phrsm 1k 9 nwuwmhpbphfb 0 zwv 5 hcvrjm 3 RH 6 spfkwumw 85 hfynjn 4 NH 6 sgvpst 6 kdthsqpzwytjceqlgcpyw 9 uz 4 bmy-bii 4 wuvye TgN-tlwguv 3 enh 6 zrhmlpwtsnwbdrjtyphn 3n 0 " target = " _ blank " class = " Baidu-Baidugb & lt/a & gt;2312”),“big 5”);
return(new string);
}
catch(UnsupportedEncodingException e)
{
退货单;
}
}