sonawane_ajay
asked on
UNICODE support
Hello All
I am downloading one file from web having encoding UTF-8 ( Unicode Support ). After downloading , I am reading the file into buffer in CString.But when I saw the buffer I found that there are some unidentified characters ( Looks like empty spaces but not spaces ). I am getting the same buffer though I converted it into UNIOCODE using MultiByteToWideChar.
like this
MultiByteToWideChar( CP_ACP, 0,str,strlen(str)+1, wszStr,256 );
NOw what can I do to see those unidentified characters ? If not possible , How can I remove those characters ?
Thanks in advance.
I am downloading one file from web having encoding UTF-8 ( Unicode Support ). After downloading , I am reading the file into buffer in CString.But when I saw the buffer I found that there are some unidentified characters ( Looks like empty spaces but not spaces ). I am getting the same buffer though I converted it into UNIOCODE using MultiByteToWideChar.
like this
MultiByteToWideChar( CP_ACP, 0,str,strlen(str)+1, wszStr,256 );
NOw what can I do to see those unidentified characters ? If not possible , How can I remove those characters ?
Thanks in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
MultiByteToWideChar( CP_UTF8, 0,str,strlen(str)+1, wszStr,256 );
look up msdn to see return value of MultiByteToWideChar, your buffer may be too small.
welcome to www.fruitfruit.com