First of all, do you think that posting your thread FOUR TIMES it will be read better than only one? It is a rude behaviour and you are discouraged to do so. Anyway, because I am not evil I will try to help you.

Pham Anh Tuan ha scritto:
Hi all,

I use Struts framework + Velocity, and I have a form with a text field, 
something like below:

<form method="POST" action="$link.setAction("/saveIt")">
    <table>
        <tr>
            <td>
                    <input type="text" name="something">
            </td>
        </tr>
    </table>
</form>

in velocity.properties file, I set:

input.encoding=UTF-8
output.encoding=UTF-8
hiz, but with all above, I couldn't save unicode value of something property 
into my DB (Mysql 4.1, I had set all utf-8) :(

but ... when I change the header of form tag like below, everything is fine, 
it's mean, I can save unicode value into DB :( ... I don't know why, help me 
plz :(

<form enctype="multipart/form-data" method="POST" 
action="$link.setAction("/saveIt")">

Do you mean that you cannot save unicode special characters both with default enctype and with enctype="multipart/form-data"? Or you cannot save them only with enctype=form-data?


Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to