Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / April 2008

Tip: Looking for answers? Try searching our database.

MySql with Hebrew.

Thread view: 
Mr. X. - 04 Apr 2008 11:03 GMT
Hello.
I want to use MySql with Hebrew.
I am using also Squirrel as a navigator.
How can I use in mysql either Squirrel with Hebrew.

Thanks :)
RedGrittyBrick - 04 Apr 2008 11:37 GMT
> Hello.
> I want to use MySql with Hebrew.
> I am using also Squirrel as a navigator.
> How can I use in mysql either Squirrel with Hebrew.

Have you read this:
http://dev.mysql.com/tech-resources/articles/4.1/unicode.html

Please use a MySQL forum for MySQL questions.

IIRC SQuirreL is written in Java.
http://mindprod.com/jgloss/unicode.html

Signature

RGB

Roedy Green - 04 Apr 2008 21:50 GMT
On Fri, 4 Apr 2008 13:03:56 +0300, "Mr. X."
<no_spam_please@nospam_please.com> wrote, quoted or indirectly quoted
someone who said :

>I want to use MySql with Hebrew.
>I am using also Squirrel as a navigator.
>How can I use in mysql either Squirrel with Hebrew.

Often you can configure a database with which encoding it should store
the database.  I think JDBC always uses Unicode.  So if you are
writing in Java, I would think you don't need to do anything special
to fetch your data, just to display it, right to left, and to make
your layouts align the mirror of the usual.

see http://mindprod.com/jgloss/hebrew.html
for some tips on using Hebrew in Java.
Signature


Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Mr. X. - 14 Apr 2008 04:19 GMT
Hello.
Also in Squirrel eighter on java code
(connection string is : jdbc:mysql://localhost/mydb )

select '???'
(can you see Hebrew ?).

I see that the result is ??? (three question remarks).

How can I solve the above ?

Thanks :)
Mr. X. - 14 Apr 2008 04:24 GMT
About select 'אבג' :
just put three letters on Hebrew...
Mr. X. - 14 Apr 2008 04:49 GMT
...
I don't know what extactly to change
(I have changed my.ini : default-character-set=UTF-8,
and restart the service of mysql,
but it didn't help,
 and I don't know exactly if I did changes on the right place, since there are several ini file by default, and I don't know how which service is connected to which file ?)

Thanks :)
RedGrittyBrick - 14 Apr 2008 12:00 GMT
> Hello.
> Also in Squirrel eighter on java code
[quoted text clipped - 4 lines]
>
> I see that the result is ??? (three question remarks).

It works fine for me using SQuirreL 2.2 and Derby
select code, 'foo', 'אבג', 'bar' from app.customer;
returned a nice table with Hebrew characters in the 3rd column.

> How can I solve the above ?

I think it's not a Java programming problem.
Try asking in comp.databases.mysql

Try using MySQL's command line tools
http://dev.mysql.com/doc/refman/5.1/en/mysql.html
Obviously, you'll have to set up your command line environment to use a
character set/encoding/font that supports Hebrew.

If you can get MySQL's command line tools to behave the way you want, I
expect getting SQuirreL and Java to do what you want should be easier.

Signature

RGB

Mr. X. - 24 Apr 2008 21:22 GMT
Thanks ...

1. My question is for mysql & not derby.
2. I have tried the newsgroup comp.database.mysql - no one realy answer.
3. I will check the link you gave again, but since I watched that link, I
think I could not grasp what to do to solve Hebrew-problems as I've
mentioned.

Thanks :)
Mr. X. - 24 Apr 2008 21:33 GMT
...
O.K.
There is command :
show create database mydb.
results are (columns seperated by ",")
mydb, CREATE DATABASE `cashereg` /*!40100 DEFAULT CHARACTER SET latin1 */

...
Well it is not utf-8 character-set.

How can I change the above setting ?

Thanks :)
Lew - 25 Apr 2008 00:37 GMT
> ...
> O.K.
[quoted text clipped - 7 lines]
>
> How can I change the above setting ?

Have you considered reading the documentation?
<http://dev.mysql.com/doc/refman/5.1/en/alter-database.html>

Signature

Lew

Mr. X. - 25 Apr 2008 21:40 GMT
What's wrong of the following :

alter database cashereg  character set utf8 (first statement)
select 'א' (second statement)

(The select statement doesn't show on the results the Hebrew characters).

Thanks :)
Mr. X. - 25 Apr 2008 21:57 GMT
I think I am getting in progress :
When I ran :
shell> mysqld-nt --character-set-server=hebrew
and not running mysqld as a windows' service (besides, how can I run a service with parameters ?)

... the select 'א' returns 'א' (I now see the hebrew).

and also - what is the default ini-file, when I run the service with no parameters.

Thanks :)
Lew - 26 Apr 2008 00:41 GMT
> I think I am getting in progress :
> When I ran :
[quoted text clipped - 6 lines]
> and also - what is the default ini-file, when I run the service with no
> parameters.

This is a Java newsgroup.  While it's possible someone here might have an
answer, you'd be better off finding a group devoted to MySQL issues.

Signature

Lew



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.