PHP and hebrew

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Shmuel

    PHP and hebrew

    How can I output hebrew ?
    I have tried to make php script to write hebrew, but it can't do it,
    why? I tried to put put this line in the beginning of the script:
    <meta http-equiv=Content-Type content="text/html; charset=windows-1255">
    But to no avail. It is regular hebrew, which shows in notepad with
    unicode font and with normal true type font.

    Any ideas ?

  • vKp

    #2
    Re: PHP and hebrew

    Shmuel wrote:[color=blue]
    > How can I output hebrew ?
    > I have tried to make php script to write hebrew, but it can't do it,
    > why? I tried to put put this line in the beginning of the script:
    > <meta http-equiv=Content-Type content="text/html; charset=windows-1255">
    > But to no avail. It is regular hebrew, which shows in notepad with
    > unicode font and with normal true type font.
    >
    > Any ideas ?
    >[/color]
    This is not a PHP question. I'll answer anyway though. To use Hebrew in
    a webpage, you must use unicode.

    1. Change the meta tag to <meta http-equiv=Content-Type
    content="text/html; charset=utf-8">,
    2. Get your text in unicode format (either by using escaped characters
    like &#203; to write it, or getting a tool to do it for you),
    3. Copy your unicode entities into your HTML file.

    Done.

    Comment

    • John Dunlop

      #3
      Re: PHP and hebrew

      vKp wrote:
      [color=blue]
      > To use Hebrew in a webpage, you must use unicode.[/color]

      I wouldn't say must.


      --
      Jock

      Comment

      Working...