It works!
Thank you ... very, very, VERY much.
So, somehow it knows that the Hebrew is right-to-left without being
explicitly told. That's great.
I guess, next, I'll have to learn how to make some of the fields that
display wider, and perhaps, have a different Hebrew and Greek fonts.
If you could help, is that something I change in the layout page, where it
has:
<dt><?php echo __('Hebrew'); ?></dt>
<dd>
<?php echo h($clause['Clause']['hebrew']); ?>
</dd>
Or, do I change all of that by learning about Themes and using css?
You were very helpful: very clear. Thank you!
Kevin
On Friday, July 6, 2012 10:36:12 AM UTC-7, cricket wrote:
>
> You need to ensure that all parts of the application are using the
> same character encoding. UTF-8 is a good choice.
>
> When you create the database specify the encoding. For MySQL:
>
> CREATE DATABASE foo DEFAULT CHARACTER SET utf8;
>
> If you've populated the DB with a file full of data, first make sure
> that the file uses UTF-8. On a linux box:
>
> file --mime-encoding foo.sql
>
> Next include these two lines at the top of your import file to tell
> the DB how to treat the text:
>
> SET NAMES 'utf8';
> SET CHARACTER SET 'utf8';
>
> Then you need to include the following in database.php so that when
> Cake connects it tells the DB to respond with the correct encoding:
>
> 'encoding' => 'utf8'
>
> In core.php:
>
> Configure::write('App.encoding', 'UTF-8');
>
> In your layout(s):
>
> <?= $this->Html->charset() ?>
>
> The latter will include this in the head:
>
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
>
> ... which tells the browser how to treat the content.
>
> On Thu, Jul 5, 2012 at 11:01 PM, Kevin wrote:
> > I am new to CakePHP, having just learned how to bake a table to create
> > Model, Controller, and View. One of the fields in my database is Hebrew
> > (with diacritics) and one is Greek; the remainder of the fields are
> English.
> > How do I get the Hebrew and Greek to show up correctly? As is, I just
> see a
> > bunch of question marks, e.g.: ????? ???.
> >
> > Thank you, so very much, for you expertise and time.
> >
> > Kevin
> >
> > --
> > Our newest site for the community: CakePHP Video Tutorials
> > http://tv.cakephp.org
> > Check out the new CakePHP Questions site http://ask.cakephp.org and
> help
> > others with their CakePHP related questions.
> >
> >
> > To unsubscribe from this group, send email to
> > [email protected] For more options, visit this
> group at
> > http://groups.google.com/group/cake-php
>
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php