Home > Software engineering >  UrlEscape how to convert Chinese characters to % % y % x, y, y
UrlEscape how to convert Chinese characters to % % y % x, y, y

Time:01-18

Char szTest [1000]="I to test".
Char szBuffer3 [1000]={0};
DWORD dwBufLength=1000;
UrlEscapeA (szTest szBuffer3, & amp; DwBufLength URL_ESCAPE_PERCENT);
Puts (szBuffer3);

The above problems is the problem that dwFlags value with which

CodePudding user response:

 
WCHAR szTest [1000]=_T (" I to test ");
WCHAR szBuffer3 [1000]={0};
DWORD dwBufLength=1000;
# # ifndef URL_ESCAPE_AS_UTF8
# define URL_ESCAPE_AS_UTF8 0 x00040000
# endif//URL_ESCAPE_AS_UTF8
UrlEscapeW (szTest szBuffer3, & amp; DwBufLength URL_ESCAPE_AS_UTF8);




CodePudding user response:

The results showed

2.287036 e-3126% e-3146 D - NAN5-911.060997 9.255963 e+616 e+618 B5B - 9.255963-0 x1. 56 d4b67656211p - 834 - f % E70X0. The 0000000007684 p - 1022