Microsoft
Software
Hardware
Network
Question : Problem with chinese character
Description:-
I am having a string1 of ATL::CString that conatins the file path that need to be upload.
I have string2 of ATL::CString that conatins the file name out of this path and it is in chinese chracters.
I am storing string2 in another string3 of ATL::Cstring and assigning a format in format like :
string3.Format(_T("Slug: %s"), string2 );
I am passing other information along with this filename like username,password to authenticate the server.
Before passing this information along with other parameters of WinHttpSendRequest(),I am assigning string3 to _bstr_t like:
_bstr_t bstrHeaders(string3);
I am assigning the body of the file in this variable:
CBufMalloc m_requestBody;
Now I am passing this header along with other info like :
WinHttpSendRequest(GetHand
le(),
bstrHeaders, bstrHeaders.length(),
(void*)m_requestBody, m_requestBody.GetSize(),
m_requestBody.GetSize(),
(DWORD_PTR)this);
This is returning error as "Invalid Parameters".
If we change the file name which has chinese characters with english one it is working fine.
I am able to upload this file successfully with english characters.
Please assist me how to resolve this issue.
Is this related with some code page error issue or something else.
Answer : Problem with chinese character
gb2312 is the charset, B means encoded using Base64
Random Solutions
Setup of a Linksys Router behind a Cisco 3620 Router providing 2 bonded T1's
TCP/IP corruption -- cannot get address
I have a nortel option 11 and I'm having trouble forwarding calls to my cell phone. When some calls me from within the office it forwards no problem, exterernally the get transferred to the operator
Why is Outlook 2007 keep prompting me for my password?
SNMP for Sonicwall 4060
Global JNDI for managed server
Changing Domain Controllers IP Address has caused problems with active directory
Problem to start Web Sphere Admin Server on Windows 2000
How to configure a LAN between two laptop computers Bluetooth
Ampersand in domain name