UNICODE again
-
Can somebody post me a link where a UNICODE file is loaded and it's content is displayed on a Dialog? So how to load a UNICODE file ? How to display a UNICODE text on a Dialog? Thanks xxx
I'm sure there was a class on CP that can load Unicode text, try to search. Underneath, the is no easy way to do it - you simply load portion-by-portion, analyzing content. Unicode file can start with signature (FFFE or FEFF) - this will help to to understand what you have. But it is not required - in this case you will have to try to detect if text is unicode (see ::IsTextUnicode()). As for displaying, it depends on your project - if it is Unicode-enabled, then no problems. Otherwise you will need to convert to plain text. Igor Green http://www.grigsoft.com/ - files and folders comparison tools
-
I'm sure there was a class on CP that can load Unicode text, try to search. Underneath, the is no easy way to do it - you simply load portion-by-portion, analyzing content. Unicode file can start with signature (FFFE or FEFF) - this will help to to understand what you have. But it is not required - in this case you will have to try to detect if text is unicode (see ::IsTextUnicode()). As for displaying, it depends on your project - if it is Unicode-enabled, then no problems. Otherwise you will need to convert to plain text. Igor Green http://www.grigsoft.com/ - files and folders comparison tools
Here it is: http://www.codeproject.com/file/stdiofileex.asp Igor Green http://www.grigsoft.com/ - files and folders comparison tools
-
I'm sure there was a class on CP that can load Unicode text, try to search. Underneath, the is no easy way to do it - you simply load portion-by-portion, analyzing content. Unicode file can start with signature (FFFE or FEFF) - this will help to to understand what you have. But it is not required - in this case you will have to try to detect if text is unicode (see ::IsTextUnicode()). As for displaying, it depends on your project - if it is Unicode-enabled, then no problems. Otherwise you will need to convert to plain text. Igor Green http://www.grigsoft.com/ - files and folders comparison tools
Well thanks, but I also have a problem with displaying the text (_UNICODE is defined on my project). I can display the UNICODE text only with AfxMessageBox , when I try to set a STATIC TEXT control value to that text it does not show it correclty . Also wprintf(...) is not working . xxx
-
Well thanks, but I also have a problem with displaying the text (_UNICODE is defined on my project). I can display the UNICODE text only with AfxMessageBox , when I try to set a STATIC TEXT control value to that text it does not show it correclty . Also wprintf(...) is not working . xxx