| || |
How to convert the following code into reable words?
I record the web site, and I found the chinese word is converted into some string like:"%CA%FD%BE%DD%BF%E2"
and this data I want to use variable to instead of it.
I know that such as denotation "." will convert to %2E, and the chinese word is use the same way to convert to that code.
But I don't know what method can convert the denotation or words into such code. what function can I use if in VC?
who know it?
Re: How to convert the following code into reable words?
len will contain the length of the encoded string, outstring will contain the encoded string and instring is the string to encode.
NOTE, outstring should be 3 times the size of instring as each character may require encoding. I have found the best way to do this is as follows:
encstring=malloc(strlen(instring) * 3);
Full details can be found in the 4.8.3 readme file.