Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Hebrew in MySQL Question

Hebrew in MySQL Question
Thread Tools
Mac Elite
Join Date: Nov 2003
Location: Rockville, MD
Status: Offline
Reply With Quote
Jul 31, 2006, 09:49 AM
 
I have what I think is an interesting challenge:
  1. I have an overwhelmingly English-language contacts database I've developed in MySQL.
  2. I do have a need, however, for a single table containing the Hebrew names of those contacts who happen to be Jewish and have either a religious name they use in synagogue or are Israeli.
  3. So what I've done is create a separate table called "hebrew_names" with three columns: hebrew_name_id, name, person_id.
  4. I've experimented with collations and character sets related to Hebrew but don't see any effect from that, and if I enter characters using the Hebrew palette of my Mac's international menu, the characters show up in my the MySQL table as question marks only.
  5. I realize that I could simply enter the names as a string of HTML entities. For example, if I wanted to spell the name Moshe (assuming I'm working in a left-to-right system as opposed to Hebrew's normal right-to-left system), I would enter משה. So far so good.
  6. The troubles are: I don't necessarily want to use this data in XML/HTML documents, but rather I want it to be interoperable with many different kinds of applications, and I would also like to be able to display/edit these names using a Hebrew font, and edit right-to-left if possible. I don't want to have to view the data as HTML to be able to read it.
Any suggestions? I can use either Navicat or phpMyAdmin for this purpose.
     
Professional Poster
Join Date: Jan 2001
Location: Salt Lake City, UT USA
Status: Offline
Reply With Quote
Jul 31, 2006, 10:31 AM
 
Forgive me for asking this, but have you gone through the MySQL manual? Full support for Hebrew exists:

http://www.mysql.org/doc/refman/5.0/...-charsets.html

You'll probably need to make sure that your table/DB knows that you're trying to use Hebrew though.
edit: http://www.mysql.org/doc/refman/5.0/...set-table.html
2008 iMac 3.06 Ghz, 2GB Memory, GeForce 8800, 500GB HD, SuperDrive
8gb iPhone on Tmobile
     
Mac Elite
Join Date: Nov 2003
Location: Rockville, MD
Status: Offline
Reply With Quote
Aug 3, 2006, 07:03 PM
 
Originally Posted by SirCastor
Forgive me for asking this, but have you gone through the MySQL manual? Full support for Hebrew exists:

http://www.mysql.org/doc/refman/5.0/...-charsets.html

You'll probably need to make sure that your table/DB knows that you're trying to use Hebrew though.
edit: http://www.mysql.org/doc/refman/5.0/...set-table.html
Yes, I did read that section, but it's not written in "English," if you know what I mean. Anyway, all of my character_set_ variables are set to UTF-8. Maybe I should switch them to "hebrew"?
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:55 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2