Forums Register Login

getBytes("8859_1"), "UTF-8")

+Pie Number of slices to send: Send
Hi,

I have set my jsp's page encoding to utf-8.


this is the code I m using.

String strAdd=request.getParameter("address");
strAdd= new String(pValue.getBytes("8859_1"), "UTF-8");

This String "strAdd" fine, when I enter data from keyboard or copy it from notepad/editplus.

String "strAdd" has junk charecters "???" when I copy it from msword.

For Example - Neeraj's "test" is converted to Neearj?s ?test? when copied from ms word.


can anybody help ?

Thanks
Neeraj.
It's fun to be me, and still legal in 9 states! Wanna see my tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 2859 times.
Similar Threads
Inserting Japanese text into Oracle database
struts with character encoding problem
Internationalisation - Japanese Characters
Inserting Japanese text into Oracle database
Inserting Japanese text into Oracle database
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 10:39:16.