Java (EJB), Language other than English , and MySQL
Posted by: Ohad Raz
Date: October 30, 2005 03:15PM

Greetings,

I am very new to MySQL, so please forgive me if there is something very obvious that I am doing wrong.
I am using MySQL 4.1 as the DB server for my EJB application.
I am using JBoss 4.0.2 as the application server.
I've used the "MySQL Server Instance Config Wizard" to configure MySQL to use UTF8 as the default character set (since I want to use hebrew).
I've created a table like this:

create table my_tb (
myID varchar(10) not null,
myStr varchar(10),
primary key(myID)
) engine=INNODB default charset=hebrew;

In my EJB application, I've created an entity bean which simply populates myStr column with some hebrew text.
My problem is that I keep getting the text in myStr column as question marks (i.e., '??????').

Has anyone has any ideas?

I would appreciate any help...


Kind Regards,

Ohad.

P.S.
There is nothing wrong with the coding of the bean, the deployment descriptor, etc. - if I use English text then everything is OK.

Options: ReplyQuote


Subject
Views
Written By
Posted
Java (EJB), Language other than English , and MySQL
2828
October 30, 2005 03:15PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.