我想知道,但我的应用程序在打印之前停止了" \ u064B"
std::wcout << L"{\"data\":\"string\",\"text\":\"\u00b2\u00b2\u064B BOB \u00b2\u00b2\u00b2}" << std::endl;
如果我打印:
std::wcout << L"{\"data\":\"string\",\"text\":\"\u00b2\u00b2\u00b2 BOB \u00b2\u00b2\u00b2}" << std::endl;
一切都好,为什么?
答案 0 :(得分:0)
如果要打印'\'
,则必须使用“\\”public class MainActivity extends FragmentActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
if (findViewById(R.id.fragment_container) != null) {
if (savedInstanceState != null) {
return;
}
FragmentManager fm = getSupportFragmentManager();
FragmentTransaction ft = fm.beginTransaction();
Menu_Fragment fragment = new Menu_Fragment();
fragment.setArguments(getIntent().getExtras());
ft.replace(R.id.fragment_container, fragment);
ft.commit();
}
}
}