I have a file that contains Japanese characters and I want to know if the line contains of only Katakana characters without using Qtcore
trial.txt
contains:
こにちわ
おはよう
ナルト
I want the program to say that the third line is all katakana characters
The file is saved as "UTF-8 Unicode text, with CRLF line terminators".
If you think this is a duplicate question, please comment the link to the same ANSWERED question.
/*
Unicode Ranges:
3040 — 309F Hiragana
30A0 — 30FF Katakana
*/
I am using C++, Visual Studio 2013, gcc 4.8.3 and my current code page is Unicode (UTF-8 with signature). Prefixes like u8
don't work (I don't know why, it should have worked).