character conversion problem
0 posts in topic
Flat View  Flat View

Posted By:   cem_tekin
Posted On:   Friday, August 13, 2004 09:24 AM

hi there,

i want to get some text from a TextField and insert this to a mysql database table.

problem is that if the user enters some turkish characters these gets converted to gibberish.

now, i know that TextFields always return utf8 encoded characters. i try to convert them with the following code but no luck.

byte[] utf8Bytes = theText.getBytes();

newText = new String(utf8Bytes, "ISO8859_9");

anybody have an idea?

thanks in advance


About | Sitemap | Contact