0

Hi all,

I am using Netbeans for Java and MySql to Store my Datatbase,

I get inputs from User and Encode the String input and Store the Data in my Database ,

My Problem is Some Strings are Stored as '??????' in my database.

I am using code for Encoding is

String psStringDsc = "áâãäåæçèéêëíìîïð ";
psStringDsc=new String(psStringDsc.getBytes("UTF-8"));

And Using Code

CAST(_utf8'"+psStringDsc + "' AS CHAR CHARACTER SET latin1) in Insert Query and Store the Data.

When I ran my Project in Windows Platform , It stored the Original values in Database, but i ran my Project in Linux Platform , it stored '?????' instead of Original value..

Can I do anything in my machine for character encoding?

Or How can i solve this Problem?

Thanks in Advance

Myl

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by Mylsamy
0

Sorry for Replication ,

It is very urgency know, that is why i posted two times sorry

myl

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.