This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
In others JSPs within the same app (each document share the same codification tag) I can add data with special characters like ñ, á , ö, ê , etc.
however, in this particular form, they're added to database as junk characters like Ã¡ , Ã± , ...
I've already changed my tables' codification to UTF-8, to no avail
I believe it has something to do with the enctype="multipart/form-data" parameter
Is there anything you can suggest to stop this from happening?
I'm using BEA Weblogic 8.1.3
carlos rivera wrote:no, the problem is the text being inserted in the database, i use the netui:fileupload for uploading an image to the server, and that works just fine.
You read images with streams and encoding should not be a problem there. Text is a different matter. Does the problem occur when the file is uploaded or when the uploaded contents are inserted into the DB ?
Joined: Sep 03, 2009
the problem occurs whether I upload a file or not, everytime I enter 'foreign' characters. When I print the text in console, BEFORE doing the insert to the DB, it's already corrupted. Weblogic is somehow changing the codification of text in this particular Form.
It is probably not weblogic's fault. Set the encoding of the JSP page to display. If you are reading this input in some form (instead of having net UI read it automatically), then mention the encoding of the text.