PDA

View Full Version : uploading file change character encoding


rui.rodrigues251419
03-26-2009, 02:01 PM
Hi,

i'm using DFP and DataAssist in ASP, all the files use UTF8 encoding.
In some pages i have simple forms just to insert text in Database.

but after inserting a new item (text) the backoffice send me to detail page (where i can upload a file), but on this page when i upload the file, change the text for other encondig.

Example of table:
ID, name(varChar), picture(varChar)

Example of the steps:
Page 1: insert new name > Conceição

Page 2: upload picture to conceição (here i make the upload and one update with dataAssist, then the file is uploaded with success but change the name to Concei��o) with this 2 squares.

What is happening?!!?

Hope that anyone can solve my problem.

Regards,

Rui

Danilo Celic
04-01-2009, 02:28 PM
I've seen in ASP where the codepage is set to unicode or something similar but the upload code assumes non-unicode. In those situations, I've seen reported that the file won't upload, but I suppose that file names may also get modified.

Try changing the codepage attribute of the @language declaration at the top of the file to 1252 and see if that helps any. Beyond that, please post a support incident (http://www.webassist.com/mywebassist/techsupportinsert_1.php) to get some one on one assistance.

Cologne
04-07-2009, 10:03 AM
If it is not important to keep the original name I use the random-password extension to create a 10 character filename.

Otherwise create a simple function and put it around the filename.