How to read Japanese and Korean characters?
-
I have a file whose name is in Japanese or Korean. I save that to QString but utf8() on it gives ???
Any solutions?
-
qDebug() on your Windows console? Blame MS :)
Print them in a QMessageBox or QLabel. -
Hi,
Where do you see these question marks ?
-
When I qDebug() I see these characters as question marks.
qDebug()<<fileName.toUtf8().data() -
qDebug() on your Windows console? Blame MS :)
Print them in a QMessageBox or QLabel. -
Yeah QMessageBox works fine.
What the hell. Is there any way possible?
-
@harish__rajora said in How to read Japanese and Korean characters?:
Is there any way possible?
No, the console can not print anything useful if you don't know the correct code page.
-
If I read a folder whose name is in Japanese using QString. Now I need to convert this to char * to pass it to my other function. Can I do that?
-
@harish__rajora Why do you need char*?
-
I have a library that is not built by me by my company. I can't change that. It takes char * as input.
-
@harish__rajora said in How to read Japanese and Korean characters?:
It takes char * as input
And what encoding does it expect? ASCII, UTF16, UTF8, ...?
For Japanese you have to use Unicode and that can't be represented in normal C ASCII string (char*).