Do you know the format of the Japanese text file? Is it UTF-8? Is it something else?
If you don't know what the format is, then paste the output of this program (replace "filename" with the file name) :
Code:
#include <iostream>
#include <iomanip>
#include <fstream>
using namespace std;
int main() {
ifstream fin("filename", ifstream::binary);
if (!fin) {
cerr << "Can't open file\n";
return 1;
}
cout << hex << setfill('0');
for (int i = 0; i < 100; i++) {
char ch = fin.get();
cout << setw(2) << int((unsigned char)ch) << ' ';
}
cout << '\n';
}