I have a weird problem I can't quite figure out. I am also not even sure if I'm posting in the correct forum, so please move my post if necessary.
Basically I am trying to get an HTML post to work with a chinese character.
I have a form that is multipart/form-data encoded:
The form has a single input in which I am trying to send the chinese character 我. For some reason, I am not getting the right character back when I break and inspect my command object in Eclipse.
I've tried a few things:
a) I don't explicitly set a page directive. When I submit, I get this back as a
string: 我
This strikes me as incorrect because it should be a unicode character along the lines of '\uxxxx'
b) I set the content type via a page directive:
This gets me a little bit closer; when I break, I see three characters: ���
I understand that in the encoding, some characters can have variable length (1-4), so I'm not surprised if 我 requires such an encoding. However, I should expect one character instead of three.
Does anybody know how to resolve this issue?