I've tried to add all these to the top of the asp file, due to different suggestions I've found on this problem elsewhere, with no different result. Referer: Cookie: ASPSESSIONIDASBBRBTT=GLDJDBJALAMJFBFBDCCIONHF ASPSESSIONIDAQABQBTT=DIPHILKAIICKJOIAIMILAMGE ASPSESSIONIDCSABTCQS=KMHBLBLABKHCBGPNLMCIPPNJĬontent-Type: multipart/form-data boundary=-7391102023625 This is how the POST request looks like: POST /testsite/multiparttest.asp HTTP/1.1
I have captured the request using LiveHTTP Headers in Firefox, and saved it as a UTF-8 file, the Swedish characters looks like they should (they didn't look ok in the LiveHTTP header GUI, but i'm guessing that the GUI it self doesn't use the correct encoding). Moten is required to make it work (I have added his files in a subdir called upload). I have created a test asp page (multiparttest.asp) to replicate this, the upload stuff from Lewis E. The function to convert from binary to string looks like this (this is the only place I can think of that might be wrong, since the comments say that it pulls ANSI characters, but I think it should pull Unicode characters): Private Function CStrU(ByRef pstrANSI)ĬStrU = CStrU & Chr(AscB(MidB(pstrANSI, llngIndex, 1))) I have saved the files in UTF-8 (with BOM), I have added the meta tag to tell the page it is in UTF-8. I.e Swedish characters å ä and ö is displayed as question marks if I print them out using Response.Write. I'm using UTF-8, but they don't end up as UTF-8. The problem is the other form input fields. The file upload perfectly, I'm using this code: Upload Files Without COM v3 by Lewis E. I also want to post some text that will be stored in a DB.
I'm trying to upload a files in a asp classic app, without the use of an external component. I have a problem that I really don't understand.