Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
C++ のマニュアルを読んでみると、wchar_tはこのように記述されています。
wchar_t ワイド文字 - 2 または 4 バイト 1 ワイド文字
wchart _t のようなデータ (漢字など) を MySQLに格納する方法を考えさせられました。
wchar_t文字エンコーディングを認識していません。Awchar_tは (理論的には) 1 バイトまたは 8 バイトでさえあります。MySQL は文字エンコーディングを認識しています。したがって、すべての目的に適合する答えはありません。エンコーディングが MySQL と C++ コードで同じであることを確認してください。
wchar_t