Re: Hebrew language support
Posted by: David Ziants
Date: January 23, 2006 04:54AM

Amir Habib wrote:
> After you set everything to work in utf-8
>
> add these lines in your connection script before
> you run the query
>
> mysql_query("SET character_set_client=utf8");
> mysql_query("SET
> character_set_connection=utf8");
> mysql_query("SET
> character_set_database=utf8");
> mysql_query("SET
> character_set_results=utf8");
> mysql_query("SET character_set_server=utf8");
>
> Good Luck :)

I have a similar problem with my-sql (vers 5.0.18-nt community edition)/Windows XP and used a similar script from an sql editor:

SET character_set_client=utf8;
alter database my_own_db character set utf8;
SET character_set_results=utf8;
SET character_set_server=utf8;
select 'ל';
select ascii('ל');

On my Windows configuration, I have control panel/Regional & Languages/Advanced set to let non-unicode programs recognise unicode as Hebrew.

Am I doing something wrong? What else do I need to do?

The second from last statement is selecting a Hebrew letter lamed. This returns a question mark "?" (ascii 63) when doing this from DB Visual Architect SQL. When doing this from MySQL Command Line Client, I am rendered an "i" with a circumflex (ascii 140) which I remember as the non-unicode Hebrew equivalent.

Trying to insert Hebrew to a test table

mysql> drop table test;
Query OK, 0 rows affected (0.03 sec)
mysql> create table test (hello3 varchar(20));
Query OK, 0 rows affected (0.11 sec)
mysql> insert into test values ('שלום');

DB Visual Architect SQL: inserts four question marks.


MySQL Command Line Client gives this message:
ERROR 1406 (22001): Data too long for column 'hello3' at row 1

Thank you for your help.

David Ziants
dziants@013.net

Options: ReplyQuote


Subject
Views
Written By
Posted
18716
November 22, 2004 10:27AM
8785
November 25, 2004 02:48AM
7614
November 29, 2004 04:43PM
7645
November 29, 2004 04:45PM
6342
December 03, 2004 05:26AM
10156
January 21, 2005 12:54AM
5114
January 21, 2005 01:30AM
4675
January 22, 2005 02:55PM
4761
January 23, 2006 06:50AM
4401
January 29, 2006 05:38AM
9380
February 09, 2006 11:04AM
5006
January 24, 2005 02:38AM
5087
May 26, 2005 03:03PM
5667
August 20, 2005 02:03PM
Re: Hebrew language support
13147
January 23, 2006 04:54AM
5498
January 23, 2006 05:26AM
4423
December 27, 2006 04:06AM
4961
February 07, 2007 12:56PM
4573
June 21, 2009 10:18AM
4279
June 21, 2009 11:43AM


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.